]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: clean up feature test macros with predicate functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 17 Oct 2015 20:18:43 +0000 (16:18 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 29 May 2017 21:01:15 +0000 (17:01 -0400)
commit2d8f94741718924aa11a5587073c61fa6363c479
tree0c208272ebe997ccac09aab23184eab6d40c13ed
parent74234706a6513943bfa97bf716b548197b494acf
ext4: 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>
(cherry picked from commit e2b911c53584a92266943f3b7f2cdbc19c1a4e80)

Orabug: 25802481
CVE-2016-10208

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
 Conflicts:
fs/ext4/namei.c
fs/ext4/super.c
15 files changed:
fs/ext4/balloc.c
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.h
fs/ext4/extents.c
fs/ext4/ialloc.c
fs/ext4/indirect.c
fs/ext4/inline.c
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/migrate.c
fs/ext4/namei.c
fs/ext4/resize.c
fs/ext4/super.c
fs/ext4/xattr.c