diff options
author | Brian Foster <bfoster@redhat.com> | 2015-05-29 00:58:32 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-05-29 00:58:32 +0200 |
commit | 502a4e72b8707f3a45fb51f873c2865928db0771 (patch) | |
tree | fb3445de45f8efcb588f8817eb4172240df1a51a /fs/xfs/xfs_fsops.c | |
parent | xfs: sparse inode chunks feature helpers and mount requirements (diff) | |
download | linux-502a4e72b8707f3a45fb51f873c2865928db0771.tar.xz linux-502a4e72b8707f3a45fb51f873c2865928db0771.zip |
xfs: add fs geometry bit for sparse inode chunks
Define an fs geometry bit for sparse inode chunks such that the
characteristic of the fs can be identified by userspace.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@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 cb7e8a29dfb6..4bd6463cd931 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -101,7 +101,9 @@ xfs_fs_geometry( (xfs_sb_version_hasftype(&mp->m_sb) ? XFS_FSOP_GEOM_FLAGS_FTYPE : 0) | (xfs_sb_version_hasfinobt(&mp->m_sb) ? - XFS_FSOP_GEOM_FLAGS_FINOBT : 0); + XFS_FSOP_GEOM_FLAGS_FINOBT : 0) | + (xfs_sb_version_hassparseinodes(&mp->m_sb) ? + XFS_FSOP_GEOM_FLAGS_SPINODES : 0); geo->logsectsize = xfs_sb_version_hassector(&mp->m_sb) ? mp->m_sb.sb_logsectsize : BBSIZE; geo->rtsectsize = mp->m_sb.sb_blocksize; |