diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-09 10:56:07 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-07-12 11:17:27 -0700 |
commit | c01147d929899f02a0a8b15e406d12784768ca72 (patch) | |
tree | 28ab8cd3cdb8ac076bfe7f59abaf327b1ac3f453 /fs/xfs/libxfs/xfs_dir2_block.c | |
parent | 932b42c66cb5d0ca9800b128415b4ad6b1952b3e (diff) | |
download | linux-stable-c01147d929899f02a0a8b15e406d12784768ca72.tar.gz linux-stable-c01147d929899f02a0a8b15e406d12784768ca72.tar.bz2 linux-stable-c01147d929899f02a0a8b15e406d12784768ca72.zip |
xfs: replace inode fork size macros with functions
Replace the shouty macros here with typechecked helper functions.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_block.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2_block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_block.c b/fs/xfs/libxfs/xfs_dir2_block.c index f5e45aa28c91..00f960a703b2 100644 --- a/fs/xfs/libxfs/xfs_dir2_block.c +++ b/fs/xfs/libxfs/xfs_dir2_block.c @@ -842,7 +842,7 @@ xfs_dir2_block_removename( * See if the size as a shortform is good enough. */ size = xfs_dir2_block_sfsize(dp, hdr, &sfh); - if (size > XFS_IFORK_DSIZE(dp)) + if (size > xfs_inode_data_fork_size(dp)) return 0; /* @@ -1055,7 +1055,7 @@ xfs_dir2_leaf_to_block( * Now see if the resulting block can be shrunken to shortform. */ size = xfs_dir2_block_sfsize(dp, hdr, &sfh); - if (size > XFS_IFORK_DSIZE(dp)) + if (size > xfs_inode_data_fork_size(dp)) return 0; return xfs_dir2_block_to_sf(args, dbp, size, &sfh); |