OSDN Git Service

xfs: Introduce xfs_dfork_nextents() helper
authorChandan Babu R <chandan.babu@oracle.com>
Thu, 27 Aug 2020 10:04:34 +0000 (15:34 +0530)
committerChandan Babu R <chandan.babu@oracle.com>
Mon, 11 Apr 2022 04:11:18 +0000 (04:11 +0000)
commitdd95a6ce31d6441dfd5fd3aa5d7208b0fc61782f
tree3fe4e2e4fde565fec82938f149fb58cda22abffc
parentbb1d50494cbdd9c5991ddc7feeeb14982872b2a8
xfs: Introduce xfs_dfork_nextents() helper

This commit replaces the macro XFS_DFORK_NEXTENTS() with the helper function
xfs_dfork_nextents(). As of this commit, xfs_dfork_nextents() returns the same
value as XFS_DFORK_NEXTENTS(). A future commit which extends inode's extent
counter fields will add more logic to this helper.

This commit also replaces direct accesses to xfs_dinode->di_[a]nextents
with calls to xfs_dfork_nextents().

No functional changes have been made.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/scrub/inode.c