diff options
author | Eric Sandeen <sandeen@redhat.com> | 2018-04-03 11:13:56 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2018-04-03 11:13:56 -0500 |
commit | dd17791c7f4668275e66d002d134871f018d8d11 (patch) | |
tree | 65363a36622010bcd21af84566496be2c56fc07c | |
parent | 99a1e0dac339c2c2885ba26371923570f7032654 (diff) | |
download | xfsprogs-dev-dd17791c7f4668275e66d002d134871f018d8d11.tar.gz |
xfs_repair: remove unused fs_aligned_inodes_allowed
fs_aligned_inodes_allowed is never set to anything but 1;
remove it and all associated code.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | repair/versions.c | 18 | ||||
-rw-r--r-- | repair/versions.h | 2 | ||||
-rw-r--r-- | repair/xfs_repair.c | 1 |
3 files changed, 2 insertions, 19 deletions
diff --git a/repair/versions.c b/repair/versions.c index 930ed98b93..d2c58444d4 100644 --- a/repair/versions.c +++ b/repair/versions.c @@ -215,22 +215,8 @@ _("WARNING: you have a V1 inode filesystem. It would be converted to a\n" } if (xfs_sb_version_hasalign(sb)) { - if (fs_aligned_inodes_allowed) { - fs_aligned_inodes = 1; - fs_ino_alignment = sb->sb_inoalignmt; - } else { - if (!no_modify) { - do_warn( -_("WARNING: you have disallowed aligned inodes but this filesystem\n" - "\thas aligned inodes. The filesystem will be downgraded.\n" - "\tThis will permanently degrade the performance of this filesystem.\n")); - } else { - do_warn( -_("WARNING: you have disallowed aligned inodes but this filesystem\n" - "\thas aligned inodes. The filesystem would be downgraded.\n" - "\tThis would permanently degrade the performance of this filesystem.\n")); - } - } + fs_aligned_inodes = 1; + fs_ino_alignment = sb->sb_inoalignmt; } /* diff --git a/repair/versions.h b/repair/versions.h index 1ce51bd33c..a0688f8151 100644 --- a/repair/versions.h +++ b/repair/versions.h @@ -27,7 +27,6 @@ * possible XFS filesystem features * * inode version 2 (32-bit link counts) (6.2) - * aligned inodes (6.2+) * * bitmask fields happend after 6.2. */ @@ -38,7 +37,6 @@ * options */ -EXTERN int fs_aligned_inodes_allowed; EXTERN int fs_sb_feature_bits_allowed; EXTERN int fs_has_extflgbit_allowed; EXTERN int fs_shared_allowed; diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index 20a587c506..0b1920805f 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -207,7 +207,6 @@ process_args(int argc, char **argv) sb_inoalignmt = 0; sb_unit = 0; sb_width = 0; - fs_aligned_inodes_allowed = 1; fs_sb_feature_bits_allowed = 1; fs_has_extflgbit_allowed = 1; pre_65_beta = 0; |