aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-07-02 18:22:33 +0000
committerDarrick J. Wong <[email protected]>2024-07-02 18:36:56 +0000
commitfcea5b35f36233c04003ab8b3eb081b5e20e1aa4 (patch)
tree7e1201539401ddd579db627525641c687abbb5fa /fs/xfs/xfs_inode.h
parentxfs: hoist inode flag conversion functions to libxfs (diff)
downloadkernel-fcea5b35f36233c04003ab8b3eb081b5e20e1aa4.tar.gz
kernel-fcea5b35f36233c04003ab8b3eb081b5e20e1aa4.zip
xfs: hoist project id get/set functions to libxfs
Move the project id get and set functions into libxfs. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index b20768962e8d..15ab7a1c79a6 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -271,15 +271,6 @@ xfs_iflags_test_and_set(xfs_inode_t *ip, unsigned long flags)
return ret;
}
-static inline prid_t
-xfs_get_initial_prid(struct xfs_inode *dp)
-{
- if (dp->i_diflags & XFS_DIFLAG_PROJINHERIT)
- return dp->i_projid;
-
- return XFS_PROJID_DEFAULT;
-}
-
static inline bool xfs_is_reflink_inode(struct xfs_inode *ip)
{
return ip->i_diflags2 & XFS_DIFLAG2_REFLINK;