xfs: don't open code XFS_FILBLKS_MIN in xfs_bmapi_write
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Apr 2024 06:15:24 +0000 (08:15 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 30 Apr 2024 04:15:19 +0000 (09:45 +0530)
commit9d06960341ec5f45d3d65bdead3fbce753455e8a
tree767b84af6811fad905ecef85f52e6c4bfb5b9cc1
parent04c609e6e5066294b60329420d3711e990c47abf
xfs: don't open code XFS_FILBLKS_MIN in xfs_bmapi_write

XFS_FILBLKS_MIN uses min_t and thus does the comparison using the correct
xfs_filblks_t type.  Use it in xfs_bmapi_write and slightly adjust the
comment document th potential pitfall to take account of this

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_bmap.c