diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-05-19 23:46:55 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-19 23:46:55 +0200 |
commit | 5d074a4f8005b988c9d48d29250e36ad64083252 (patch) | |
tree | b749731540b3865f0cdd708970dbda3cd3255a64 /fs/xfs/xfs_sb.h | |
parent | xfs: turn NLINK feature on by default (diff) | |
download | linux-5d074a4f8005b988c9d48d29250e36ad64083252.tar.xz linux-5d074a4f8005b988c9d48d29250e36ad64083252.zip |
xfs: don't need dirv2 checks anymore
If the the V2 directory feature bit is not set in the superblock
feature mask the filesystem will fail the good version check.
Hence we don't need any other version checking on the dir2 feature
bit in the code as the filesystem will not mount without it set.
Remove the checking code.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_sb.h')
-rw-r--r-- | fs/xfs/xfs_sb.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h index a2826cf57d78..822e62819741 100644 --- a/fs/xfs/xfs_sb.h +++ b/fs/xfs/xfs_sb.h @@ -403,12 +403,6 @@ static inline bool xfs_sb_version_hasshared(struct xfs_sb *sbp) (sbp->sb_versionnum & XFS_SB_VERSION_SHAREDBIT); } -static inline bool xfs_sb_version_hasdirv2(struct xfs_sb *sbp) -{ - return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5 || - (sbp->sb_versionnum & XFS_SB_VERSION_DIRV2BIT); -} - static inline bool xfs_sb_version_haslogv2(struct xfs_sb *sbp) { return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5 || |