]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: optimize fsync for the single writer case
authorJosef Bacik <josef@redhat.com>
Thu, 8 Oct 2009 19:30:04 +0000 (15:30 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 8 Oct 2009 19:30:04 +0000 (15:30 -0400)
commit0a48d531cbf5b59253700548506d1c678c2799b7
treeff7773e6ce60bf977ed29897c13605f257647684
parent211b6b2846b8b37a9bd5931f6dcc32ac8779931d
Btrfs: optimize fsync for the single writer case

This patch optimizes the tree logging stuff so it doesn't always wait 1 jiffie
for new people to join the logging transaction if there is only ever 1 writer.
This helps a little bit with latency where we have something like RPM where it
will fdatasync every file it writes, and so waiting the 1 jiffie for every
fdatasync really starts to add up.

Signed-off-by: Josef Bacik <jbacik@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/tree-log.c