]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong sync_writers decrement in btrfs_file_aio_write()
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 28 Jan 2013 12:34:55 +0000 (12:34 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 5 Feb 2013 21:09:10 +0000 (16:09 -0500)
commit7f7fb35988ea5563c32cd3432933fc69ca3410d0
tree14531ce5b4c7fe080847590237b6c97b57f69edb
parent169d869631cf1ed2a6fd0373afbe9c6b1e6f4b21
Btrfs: fix wrong sync_writers decrement in btrfs_file_aio_write()

If the checks at the beginning of btrfs_file_aio_write() fail, we needn't
decrease ->sync_writers, because we have not increased it. Fix it.

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