diff options
author | Josef Bacik <jwhiter@redhat.com> | 2007-08-10 16:22:09 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-08-10 16:22:09 -0400 |
commit | 15ee9bc7ed171248d1405df5854da5fa91bfdc39 (patch) | |
tree | 5f29f51e1c14a6b35b2019a2ada5bb80fb97e2bd /fs/btrfs/inode.c | |
parent | f2183bde1a918d338337955c8e8ba29bd8f5e7b1 (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.c | 2 |
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; |
197 | failed: | 198 | failed: |
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 | ||