diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-10-24 01:26:35 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-24 01:26:35 -0400 |
commit | 4ee26699823c945b1894880f53cea3b45b5e3a20 (patch) | |
tree | efad6ebb99252ca3462c44bcfb6062772f9b3b97 /debugfs/quota.c | |
parent | 21e37be65ba886a2b743ab435400ec9e63548e36 (diff) | |
download | e2fsprogs-4ee26699823c945b1894880f53cea3b45b5e3a20.tar.gz |
debugfs: clean up feature test macros with predicate functions
Create separate predicate functions to test/set/clear feature flags,
thereby replacing the wordy old macros. Furthermore, clean out the
places where we open-coded feature tests.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs/quota.c')
-rw-r--r-- | debugfs/quota.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debugfs/quota.c b/debugfs/quota.c index 7aa0f3b2..8c944865 100644 --- a/debugfs/quota.c +++ b/debugfs/quota.c @@ -34,8 +34,7 @@ static int load_quota_ctx(char *progname) if (check_fs_open(progname)) return 1; - if (!EXT2_HAS_RO_COMPAT_FEATURE(current_fs->super, - EXT4_FEATURE_RO_COMPAT_QUOTA)) { + if (!ext2fs_has_feature_quota(current_fs->super)) { com_err(progname, 0, "quota feature not enabled"); return 1; } |