Btrfs: Transaction commit: don't use filemap_fdatawait
authorChris Mason <chris.mason@oracle.com>
Fri, 15 Aug 2008 19:34:15 +0000 (15:34 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:06 +0000 (11:04 -0400)
commit777e6bd706ee40897545463871de5b456fbc46dc
treecb927528e02234eb7fa6b5d1f14b9367efd755b6
parent0986fe9eac24fd186927c3b87af51d62f8ab92cd
Btrfs: Transaction commit: don't use filemap_fdatawait

After writing out all the remaining btree blocks in the transaction,
the commit code would use filemap_fdatawait to make sure it was all
on disk.  This means it would wait for blocks written by other procs
as well.

The new code walks the list of blocks for this transaction again
and waits only for those required by this transaction.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/transaction.c