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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:09 +0000 (22:59 -0700)
commit72766b0bec55b104c414a22f2e8ecdbb6bb1e19e
treeb22977e1f2f106f400faed1923c04cac79f4fa90
parentc4fa10098c869072e96cca0f372b37d30fa10be2
ext4: flush the extent status cache during EXT4_IOC_SWAP_BOOT

commit cde2d7a796f7e895e25b43471ed658079345636d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ioctl.c