diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:11:10 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-12-15 17:29:06 -0800 |
commit | b1701fc737a38983b0437d6cefaeba1963cde841 (patch) | |
tree | 00aa0fc48a6035b981d72eda86e7555c7995856c /fs/xfs/xfs_inode.h | |
parent | 87a4d240821a54628701df1e4a6a86113b586be6 (diff) |
xfs: define the on-disk format for the metadir feature
Define the on-disk layout and feature flags for the metadata inode
directory feature.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 8a2fd8d5dbff..67f391d98830 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -192,6 +192,13 @@ static inline bool xfs_is_metadata_inode(struct xfs_inode *ip) { struct xfs_mount *mp = ip->i_mount; + if (xfs_has_metadir(mp)) + return ip->i_diflags2 & XFS_DIFLAG2_METADATA; + + /* + * Before metadata directories, the only metadata inodes were the + * three quota files, the realtime bitmap, and the realtime summary. + */ return ip == mp->m_rbmip || ip == mp->m_rsumip || xfs_is_quota_inode(&mp->m_sb, ip->i_ino); } |