jbd2: clean up feature test macros with predicate functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 17 Oct 2015 20:18:45 +0000 (16:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Oct 2015 20:18:45 +0000 (16:18 -0400)
commit56316a0d28f251dae6a3bc2b6d50e7c25389871f
tree3efd106c76cee48c0831930f75cf2b6c160368f6
parente2b911c53584a92266943f3b7f2cdbc19c1a4e80
jbd2: 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>
fs/jbd2/commit.c
fs/jbd2/journal.c
fs/jbd2/recovery.c
fs/jbd2/revoke.c
include/linux/jbd2.h