aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJosef Bacik <jwhiter@redhat.com>2007-08-10 16:22:09 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-08-10 16:22:09 -0400
commit15ee9bc7ed171248d1405df5854da5fa91bfdc39 (patch)
tree5f29f51e1c14a6b35b2019a2ada5bb80fb97e2bd /fs/btrfs/inode.c
parentf2183bde1a918d338337955c8e8ba29bd8f5e7b1 (diff)
Btrfs: delay commits during fsync to allow more writers
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 5c05ecbc5726..398484179d82 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -193,6 +193,7 @@ static int btrfs_update_inode(struct btrfs_trans_handle *trans,
193 193
194 fill_inode_item(inode_item, inode); 194 fill_inode_item(inode_item, inode);
195 btrfs_mark_buffer_dirty(path->nodes[0]); 195 btrfs_mark_buffer_dirty(path->nodes[0]);
196 btrfs_set_inode_last_trans(trans, inode);
196 ret = 0; 197 ret = 0;
197failed: 198failed:
198 btrfs_release_path(root, path); 199 btrfs_release_path(root, path);
@@ -2234,6 +2235,7 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
2234 ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_NOFS); 2235 ei = kmem_cache_alloc(btrfs_inode_cachep, GFP_NOFS);
2235 if (!ei) 2236 if (!ei)
2236 return NULL; 2237 return NULL;
2238 ei->last_trans = 0;
2237 return &ei->vfs_inode; 2239 return &ei->vfs_inode;
2238} 2240}
2239 2241