diff options
author | Josef Bacik <josef@redhat.com> | 2009-10-08 15:30:04 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-10-08 15:30:04 -0400 |
commit | ff782e0a131c7f669445c07fe5c7ba91e043b7ed (patch) | |
tree | ff7773e6ce60bf977ed29897c13605f257647684 /fs/btrfs/ctree.h | |
parent | e3ccfa989752c083ceb23c823a84f7ce3a081e61 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index a362dd617e97..16ddb19dda86 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1010,6 +1010,8 @@ struct btrfs_root { | |||
1010 | atomic_t log_commit[2]; | 1010 | atomic_t log_commit[2]; |
1011 | unsigned long log_transid; | 1011 | unsigned long log_transid; |
1012 | unsigned long log_batch; | 1012 | unsigned long log_batch; |
1013 | pid_t log_start_pid; | ||
1014 | bool log_multiple_pids; | ||
1013 | 1015 | ||
1014 | u64 objectid; | 1016 | u64 objectid; |
1015 | u64 last_trans; | 1017 | u64 last_trans; |