]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: don't flush the cache inode before writing it
authorJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 14:31:37 +0000 (10:31 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:36 +0000 (21:20 -0500)
commitd98a16cfdb6426f833eafafbd42ab7fd7db4cb9c
treeb8ea471a10a7e5f93a2caeb9934dbf6df4f2e020
parent311d4d154f21fe90112c792359b126e4ebb1a799
Btrfs: don't flush the cache inode before writing it

I noticed we had a little bit of latency when writing out the space cache
inodes.  It's because we flush it before we write anything in case we have dirty
pages already there.  This doesn't matter though since we're just going to
overwrite the space, and there really shouldn't be any dirty pages anyway.  This
makes some of my tests run a little bit faster.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 016fc6a63e465d5b94e4028f6d05d9703e195428)
fs/btrfs/free-space-cache.c