diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 20:49:31 +1000 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 16:35:41 -0500 |
commit | d386b32b553ce145fb40f0d9360b6e5a79b5a80c (patch) | |
tree | e00135dfc377ec6b4f8a7f48e6e39b33bd842199 /fs/xfs/xfs_sb.h | |
parent | 76456fc2a6fe3a31c492a072413925eebc68cc98 (diff) | |
download | linux-stable-d386b32b553ce145fb40f0d9360b6e5a79b5a80c.tar.gz linux-stable-d386b32b553ce145fb40f0d9360b6e5a79b5a80c.tar.bz2 linux-stable-d386b32b553ce145fb40f0d9360b6e5a79b5a80c.zip |
xfs: sync minor header differences needed by userspace.
Little things like exported functions, __KERNEL__ protections, and
so on that ensure user and kernel shared headers are identical.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_sb.h')
-rw-r--r-- | fs/xfs/xfs_sb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h index a6ff9d6e72f6..40b003e47845 100644 --- a/fs/xfs/xfs_sb.h +++ b/fs/xfs/xfs_sb.h @@ -554,6 +554,13 @@ static inline int xfs_sb_version_hasprojid32bit(xfs_sb_t *sbp) (sbp->sb_features2 & XFS_SB_VERSION2_PROJID32BIT)); } +static inline void xfs_sb_version_addprojid32bit(xfs_sb_t *sbp) +{ + sbp->sb_versionnum |= XFS_SB_VERSION_MOREBITSBIT; + sbp->sb_features2 |= XFS_SB_VERSION2_PROJID32BIT; + sbp->sb_bad_features2 |= XFS_SB_VERSION2_PROJID32BIT; +} + static inline int xfs_sb_version_hascrc(xfs_sb_t *sbp) { return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; |