summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_bmap.c
diff options
context:
space:
mode:
authorDave Chinner2018-06-07 16:54:02 +0200
committerDarrick J. Wong2018-06-08 19:07:52 +0200
commit9bb54cb56ae8498d35392745f8f050112cec5dcb (patch)
tree166233a63916ee1c4c38a5470f61f864a2df3ddd /fs/xfs/libxfs/xfs_bmap.c
parentxfs: move various type verifiers to common file (diff)
downloadkernel-qcow2-linux-9bb54cb56ae8498d35392745f8f050112cec5dcb.tar.gz
kernel-qcow2-linux-9bb54cb56ae8498d35392745f8f050112cec5dcb.tar.xz
kernel-qcow2-linux-9bb54cb56ae8498d35392745f8f050112cec5dcb.zip
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index 3de047eb8209..6a79a07528cf 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -3467,7 +3467,7 @@ xfs_bmap_btalloc(
xfs_rmap_skip_owner_update(&args.oinfo);
/* Trim the allocation back to the maximum an AG can fit. */
- args.maxlen = MIN(ap->length, mp->m_ag_max_usable);
+ args.maxlen = min(ap->length, mp->m_ag_max_usable);
args.firstblock = *ap->firstblock;
blen = 0;
if (nullfb) {