From ea94cb62ab18cbc0e807b3bfa7aeab7a80e1454f Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 3 Apr 2018 11:13:57 -0500 Subject: [PATCH] xfs_repair: remove unused fs_shared_allowed variable The fs_shared_allowed global was set to 1 and then ignored, and in fact the feature is never actualy allowed. Remove it and the last stragglers of the old features comment. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- repair/versions.h | 15 --------------- repair/xfs_repair.c | 1 - 2 files changed, 16 deletions(-) diff --git a/repair/versions.h b/repair/versions.h index 8b95fc276..1fac278e9 100644 --- a/repair/versions.h +++ b/repair/versions.h @@ -23,20 +23,6 @@ #define EXTERN extern #endif /* EXTERN */ -/* - * possible XFS filesystem features - * - * inode version 2 (32-bit link counts) (6.2) - */ - -/* - * filesystem feature global vars, set to 1 if the feature - * is *allowed*, 0 otherwise. These can be set via command-line - * options - */ - -EXTERN int fs_shared_allowed; - /* * filesystem feature global vars, set to 1 if the feature * is on, 0 otherwise @@ -49,7 +35,6 @@ EXTERN int fs_quotas; EXTERN int fs_aligned_inodes; EXTERN int fs_sb_feature_bits; EXTERN int fs_has_extflgbit; -EXTERN int fs_shared; /* * inode chunk alignment, fsblocks diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index a2f3f6209..3caf9bb34 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -208,7 +208,6 @@ process_args(int argc, char **argv) sb_unit = 0; sb_width = 0; pre_65_beta = 0; - fs_shared_allowed = 1; ag_stride = 0; thread_count = 1; report_interval = PROG_RPT_DEFAULT; -- 2.39.5