Btrfs: fix wrong sync_writers decrement in btrfs_file_aio_write()
authorMiao Xie <[email protected]>
Mon, 28 Jan 2013 12:34:55 +0000 (12:34 +0000)
committerJosef Bacik <[email protected]>
Tue, 5 Feb 2013 21:09:10 +0000 (16:09 -0500)
commit0a3404dcff29a7589e8d6ce8c36f97c5411f85b4
tree14531ce5b4c7fe080847590237b6c97b57f69edb
parent222c81dc3874b4fe98371be665d0447a36447653
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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
fs/btrfs/file.c