diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-05-20 01:46:55 +0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-20 01:46:55 +0400 |
commit | 5d074a4f8005b988c9d48d29250e36ad64083252 (patch) | |
tree | b749731540b3865f0cdd708970dbda3cd3255a64 /fs/xfs/xfs_dir2.c | |
parent | 263997a6842b27a49f42bd795c5dd12242917b22 (diff) | |
download | linux-5d074a4f8005b988c9d48d29250e36ad64083252.tar.xz |
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_dir2.c')
-rw-r--r-- | fs/xfs/xfs_dir2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index fda46253966a..0c8ba87a1e7a 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c @@ -92,7 +92,7 @@ xfs_dir_mount( int nodehdr_size; - ASSERT(xfs_sb_version_hasdirv2(&mp->m_sb)); + ASSERT(mp->m_sb.sb_versionnum & XFS_SB_VERSION_DIRV2BIT); ASSERT((1 << (mp->m_sb.sb_blocklog + mp->m_sb.sb_dirblklog)) <= XFS_MAX_BLOCKSIZE); |