Btrfs: fix unblocked autodefraggers when remount
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 11 Apr 2013 10:29:35 +0000 (10:29 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:45 +0000 (15:54 -0400)
commitf42a34b2f10c411ef45f247f3000ed03ba4e80c0
tree185c7dd8ba87589430885f90fc18907b20a93fde
parentf7f82b81d2c297a5864dcfd0a205917d3e753aba
Btrfs: fix unblocked autodefraggers when remount

The new mount option is set after parsing the remount arguments,
so it is wrong that checking the autodefrag is close or not at
btrfs_remount_prepare(). Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/super.c