xfs: clean up MIN/MAX
Get rid of the MIN/MAX macros and just use the native min/max macros directly in the XFS code. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
86210fbeba
commit
9bb54cb56a
@@ -559,7 +559,7 @@ xfs_inumbers(
|
||||
*lastino != XFS_AGINO_TO_INO(mp, agno, agino))
|
||||
return error;
|
||||
|
||||
bcount = MIN(left, (int)(PAGE_SIZE / sizeof(*buffer)));
|
||||
bcount = min(left, (int)(PAGE_SIZE / sizeof(*buffer)));
|
||||
buffer = kmem_zalloc(bcount * sizeof(*buffer), KM_SLEEP);
|
||||
do {
|
||||
struct xfs_inobt_rec_incore r;
|
||||
|
||||
Reference in New Issue
Block a user