diff options
author | Wang Shilong <[email protected]> | 2014-01-14 19:42:20 +0800 |
---|---|---|
committer | Chris Mason <[email protected]> | 2014-01-28 13:20:36 -0800 |
commit | 2c21b4d733d6e50514e30ffd87110364ddda695b (patch) | |
tree | 95b303ca51649e3a934a6296042ada3d1dbea687 /net/lapb/lapb_out.c | |
parent | e4355f34ef9fc75a93875fd075137ef2ea378883 (diff) |
Btrfs: fix transaction abortion when remounting btrfs from RW to RO
Steps to reproduce:
# mkfs.btrfs -f /dev/sda8
# mount /dev/sda8 /mnt -o flushoncommit
# dd if=/dev/zero of=/mnt/data bs=4k count=102400 &
# mount /dev/sda8 /mnt -o remount, ro
When remounting RW to RO, the logic is to firstly set flag
to RO and then commit transaction, however with option
flushoncommit enabled,we will do RO check within committing
transaction, so we get a transaction abortion here.
Actually,here check is wrong, we should check if FS_STATE_ERROR
is set, fix it.
Reported-by: Qu Wenruo <[email protected]>
Suggested-by: Miao Xie <[email protected]>
Signed-off-by: Wang Shilong <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions