Whamcloud - gitweb
libext2fs: clean up feature test macros with predicate functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Oct 2015 04:34:09 +0000 (00:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 24 Oct 2015 04:34:09 +0000 (00:34 -0400)
commit77b3e9871877fce9908b0696250787fd6ea61af9
tree72ab0b48510ea3f2a7689112cc5009948209ab51
parent03940aac5492879ef365b07e69105a98f4dbabf9
libext2fs: 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>
26 files changed:
lib/e2p/ls.c
lib/ext2fs/alloc_sb.c
lib/ext2fs/alloc_tables.c
lib/ext2fs/blknum.c
lib/ext2fs/bmap.c
lib/ext2fs/check_desc.c
lib/ext2fs/closefs.c
lib/ext2fs/csum.c
lib/ext2fs/dir_iterate.c
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
lib/ext2fs/i_block.c
lib/ext2fs/initialize.c
lib/ext2fs/inline_data.c
lib/ext2fs/kernel-jbd.h
lib/ext2fs/link.c
lib/ext2fs/mkdir.c
lib/ext2fs/mkjournal.c
lib/ext2fs/mmp.c
lib/ext2fs/newdir.c
lib/ext2fs/openfs.c
lib/ext2fs/read_bb.c
lib/ext2fs/res_gdt.c
lib/ext2fs/symlink.c
lib/support/quotaio.c