diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-08-03 04:16:44 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-08-03 04:16:44 +0200 |
commit | 5d650e90a101557a7a652989c6d5eb657ae2476b (patch) | |
tree | 1a90e45ebc517fce0480cc34e5e772bb97982358 /fs/xfs/xfs_fsops.c | |
parent | xfs: propagate bmap updates to rmapbt (diff) | |
download | linux-5d650e90a101557a7a652989c6d5eb657ae2476b.tar.xz linux-5d650e90a101557a7a652989c6d5eb657ae2476b.zip |
xfs: add rmap btree geometry feature flag
Originally-From: Dave Chinner <dchinner@redhat.com>
So xfs_info and other userspace utilities know the filesystem is
using this feature.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 83304d54e6d4..0f96847b90e1 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -106,7 +106,9 @@ xfs_fs_geometry( (xfs_sb_version_hasfinobt(&mp->m_sb) ? XFS_FSOP_GEOM_FLAGS_FINOBT : 0) | (xfs_sb_version_hassparseinodes(&mp->m_sb) ? - XFS_FSOP_GEOM_FLAGS_SPINODES : 0); + XFS_FSOP_GEOM_FLAGS_SPINODES : 0) | + (xfs_sb_version_hasrmapbt(&mp->m_sb) ? + XFS_FSOP_GEOM_FLAGS_RMAPBT : 0); geo->logsectsize = xfs_sb_version_hassector(&mp->m_sb) ? mp->m_sb.sb_logsectsize : BBSIZE; geo->rtsectsize = mp->m_sb.sb_blocksize; |