ext4: flush the extent status cache during EXT4_IOC_SWAP_BOOT
authorTheodore Ts'o <tytso@mit.edu>
Mon, 12 Aug 2013 13:29:30 +0000 (09:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 Aug 2013 13:29:30 +0000 (09:29 -0400)
commitcde2d7a796f7e895e25b43471ed658079345636d
tree5f780ac8b79c0f4e34997d2855e3c7b88b8b5276
parent6ae6514b33f941d3386da0dfbe2942766eab1577
ext4: flush the extent status cache during EXT4_IOC_SWAP_BOOT

Previously we weren't swapping only some of the extent_status LRU
fields during the processing of the EXT4_IOC_SWAP_BOOT ioctl.  The
much safer thing to do is to just completely flush the extent status
tree when doing the swap.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Zheng Liu <gnehzuil.liu@gmail.com>
Cc: stable@vger.kernel.org
fs/ext4/ioctl.c