Btrfs: properly wait log writers during log sync
authorYan, Zheng <zheng.yan@oracle.com>
Wed, 14 Oct 2009 13:24:59 +0000 (09:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 14 Oct 2009 14:32:48 +0000 (10:32 -0400)
commit86df7eb921a009515285e7171363fa57dd2d7d31
tree884e8cda2535dc43cf57ce9fa273381b827d2f4f
parent5d5e103a70f74ae98e3965a4add1ab951d0651d1
Btrfs: properly wait log writers during log sync

A recently fsync optimization make btrfs_sync_log skip calling
wait_for_writer in the single log writer case. This is incorrect
since the writer count can also be increased by btrfs_pin_log.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/tree-log.c