]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:13:01 +0000 (15:13 -0400)
commit34e0bbd36518f814e4c80a8e7a4e5e54a99cf8a8
tree5482f54821647aaa10d038459012b9c8fe78e956
parent7454cd3aeaa0d197b804c222fb8e4dac25083e2e
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>
fs/btrfs/free-space-cache.c