diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-09 20:56:05 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-07-10 01:17:21 +0300 |
commit | 732436ef916b4f338d672ea56accfdb11e8d0732 (patch) | |
tree | 7bf08497e6fc504c38c3b6091d832bda615dfd5c /fs/xfs/libxfs/xfs_inode_fork.h | |
parent | 0f38063d7a38015a47ca1488406bf21e0effe80e (diff) | |
download | linux-732436ef916b4f338d672ea56accfdb11e8d0732.tar.xz |
xfs: convert XFS_IFORK_PTR to a static inline helper
We're about to make this logic do a bit more, so convert the macro to a
static inline function for better typechecking and fewer shouty macros.
No functional changes here.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_fork.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_fork.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_fork.h b/fs/xfs/libxfs/xfs_inode_fork.h index 4f68c1f20beb..50c5fae4e35d 100644 --- a/fs/xfs/libxfs/xfs_inode_fork.h +++ b/fs/xfs/libxfs/xfs_inode_fork.h @@ -81,12 +81,6 @@ struct xfs_ifork { #define XFS_IFORK_Q(ip) ((ip)->i_forkoff != 0) #define XFS_IFORK_BOFF(ip) ((int)((ip)->i_forkoff << 3)) -#define XFS_IFORK_PTR(ip,w) \ - ((w) == XFS_DATA_FORK ? \ - &(ip)->i_df : \ - ((w) == XFS_ATTR_FORK ? \ - (ip)->i_afp : \ - (ip)->i_cowfp)) #define XFS_IFORK_DSIZE(ip) \ (XFS_IFORK_Q(ip) ? XFS_IFORK_BOFF(ip) : XFS_LITINO((ip)->i_mount)) #define XFS_IFORK_ASIZE(ip) \ |