On Tue, Mar 12, 2024 at 07:15:42PM -0700, Darrick J. Wong wrote: > + if (nr_rmaps > MAXREFCOUNT) > + nr_rmaps = MAXREFCOUNT; > + rlrec.rc_refcount = nr_rmaps; use min() here? Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>
On Tue, Mar 12, 2024 at 07:15:42PM -0700, Darrick J. Wong wrote: > + if (nr_rmaps > MAXREFCOUNT) > + nr_rmaps = MAXREFCOUNT; > + rlrec.rc_refcount = nr_rmaps; use min() here? Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>