diff options
| author | Darrick J. Wong <[email protected]> | 2024-11-04 04:18:49 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-11-05 21:38:31 +0000 |
| commit | 4f3d4dd1b04b2ba0bf236fbaa3c3c0c669aa5a47 (patch) | |
| tree | 3ed154c3590c81dc7c12ccc6ab94732284efdb52 /fs/xfs/libxfs/xfs_inode_util.c | |
| parent | xfs: standardize EXPERIMENTAL warning generation (diff) | |
| download | kernel-4f3d4dd1b04b2ba0bf236fbaa3c3c0c669aa5a47.tar.gz kernel-4f3d4dd1b04b2ba0bf236fbaa3c3c0c669aa5a47.zip | |
xfs: define the on-disk format for the metadir feature
Define the on-disk layout and feature flags for the metadata inode
directory feature. Add a xfs_sb_version_hasmetadir for benefit of
xfs_repair, which needs to know where the new end of the superblock
lies.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_util.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_inode_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_util.c b/fs/xfs/libxfs/xfs_inode_util.c index ec64eda3bbe2..deb0b7c00a1f 100644 --- a/fs/xfs/libxfs/xfs_inode_util.c +++ b/fs/xfs/libxfs/xfs_inode_util.c @@ -224,6 +224,8 @@ xfs_inode_inherit_flags2( } if (pip->i_diflags2 & XFS_DIFLAG2_DAX) ip->i_diflags2 |= XFS_DIFLAG2_DAX; + if (xfs_is_metadir_inode(pip)) + ip->i_diflags2 |= XFS_DIFLAG2_METADATA; /* Don't let invalid cowextsize hints propagate. */ failaddr = xfs_inode_validate_cowextsize(ip->i_mount, ip->i_cowextsize, |
