Whamcloud - gitweb
e2fsck: clean up feature test macros with predicate functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Oct 2015 04:43:19 +0000 (00:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 24 Oct 2015 04:44:40 +0000 (00:44 -0400)
commit86f3b6cf98a72c6dad0738e3af2512ddcbd49be9
treea5303cf9329ff6022a055d42d3b06d39e9850735
parent77b3e9871877fce9908b0696250787fd6ea61af9
e2fsck: 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>
13 files changed:
e2fsck/extents.c
e2fsck/journal.c
e2fsck/message.c
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/pass2.c
e2fsck/pass3.c
e2fsck/pass5.c
e2fsck/quota.c
e2fsck/recovery.c
e2fsck/rehash.c
e2fsck/super.c
e2fsck/unix.c