]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: add mask of ext4 flags to swap
authoryangerkun <yangerkun@huawei.com>
Mon, 11 Feb 2019 05:35:06 +0000 (00:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:22 +0000 (14:35 +0100)
commit80988933648438dbb3ec9ba58cf026090c03d540
treef4eeb16cc3e571c0efb4926fcc647aa47dd45919
parentdd5bee64db1213f90b80aa2328183d1a74d3f267
ext4: add mask of ext4 flags to swap

commit abdc644e8cbac2e9b19763680e5a7cf9bab2bee7 upstream.

The reason is that while swapping two inode, we swap the flags too.
Some flags such as EXT4_JOURNAL_DATA_FL can really confuse the things
since we're not resetting the address operations structure.  The
simplest way to keep things sane is to restrict the flags that can be
swapped.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/ioctl.c