Btrfs: fix remount vs autodefrag
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 21 Feb 2013 06:32:52 +0000 (23:32 -0700)
committerChris Mason <chris.mason@fusionio.com>
Thu, 21 Feb 2013 13:11:43 +0000 (08:11 -0500)
commitdc81cdc58ad2f413b96b9004f8d681e5dc554473
tree71f87fc0e172167755f1f572af3b77cb7aff46a7
parent172a50497ffaf84d60dff37fbeb03894268fe5c2
Btrfs: fix remount vs autodefrag

If we remount the fs to close the auto defragment or make the fs R/O,
we should stop the auto defragment.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/super.c