diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-08-31 01:37:21 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-09-01 18:58:20 +0300 |
commit | 411a71256de6f5a0015a28929cfbe6bc36c503dc (patch) | |
tree | ac551b3047333e36e1b533fe2db0329cf54906c1 /fs/xfs/libxfs/xfs_bmap_btree.c | |
parent | 79124b3740063573312de4b225407ebdae219275 (diff) | |
download | linux-411a71256de6f5a0015a28929cfbe6bc36c503dc.tar.xz |
xfs: standardize the btree maxrecs function parameters
Standardize the parameters in xfs_{alloc,bm,ino,rmap,refcount}bt_maxrecs
so that we have consistent calling conventions. This doesn't affect the
kernel that much, but enables us to clean up userspace a bit.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap_btree.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap_btree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap_btree.c b/fs/xfs/libxfs/xfs_bmap_btree.c index 3695b3ad07d4..3464be771f95 100644 --- a/fs/xfs/libxfs/xfs_bmap_btree.c +++ b/fs/xfs/libxfs/xfs_bmap_btree.c @@ -645,11 +645,11 @@ xfs_bmbt_commit_staged_btree( /* * Calculate number of records in a bmap btree block. */ -int +unsigned int xfs_bmbt_maxrecs( struct xfs_mount *mp, - int blocklen, - int leaf) + unsigned int blocklen, + bool leaf) { blocklen -= xfs_bmbt_block_len(mp); return xfs_bmbt_block_maxrecs(blocklen, leaf); |