]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix EXT4_IOC_GROUP_ADD ioctl
authorruippan (潘睿) <ruippan@tencent.com>
Tue, 4 Dec 2018 06:04:12 +0000 (01:04 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Dec 2018 06:04:12 +0000 (01:04 -0500)
commit44a172344d034ae533615948917a1bff16e9e620
treec4d3fd81d0acf4293cad2962d560cdaa68512359
parentba196c4bb5c5e9ba0cab69a3c4f7018154b31dc1
ext4: fix EXT4_IOC_GROUP_ADD ioctl

Commit 3b3e8397e522 ("ext4: clean up feature test macros with
predicate functions") broke the EXT4_IOC_GROUP_ADD ioctl.  This was
not noticed since only very old versions of resize2fs (before
e2fsprogs 1.42) use this ioctl.  However, using a new kernel with an
enterprise Linux userspace will cause attempts to use online resize to
fail with "No reserved GDT blocks".

Fixes: 3b3e8397e522 ("ext4: clean up feature test macros with predicate...")
Cc: stable@kernel.org # v4.4
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: ruippan (潘睿) <ruippan@tencent.com>
fs/ext4/resize.c