aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-27 10:08:34 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-27 10:08:34 -0400
commitcd1bc4653dc37f6390f4d6df4f987044c64f700b (patch)
treeff259c33e47159758d70a6d8bdc1ff5d47f710bb /fs/btrfs/super.c
parent9078a3e1e4e489dddc636c7bb8780349d4298743 (diff)
Btrfs: more block allocator work
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index edcebf79b04..a10e902d310 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -223,6 +223,7 @@ err:
223 btrfs_update_inode(trans, root, dir); 223 btrfs_update_inode(trans, root, dir);
224 drop_nlink(dentry->d_inode); 224 drop_nlink(dentry->d_inode);
225 btrfs_update_inode(trans, root, dentry->d_inode); 225 btrfs_update_inode(trans, root, dentry->d_inode);
226 dir->i_sb->s_dirt = 1;
226 } 227 }
227 return ret; 228 return ret;
228} 229}
@@ -411,6 +412,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans,
411error: 412error:
412 btrfs_release_path(root, path); 413 btrfs_release_path(root, path);
413 btrfs_free_path(path); 414 btrfs_free_path(path);
415 inode->i_sb->s_dirt = 1;
414 return ret; 416 return ret;
415} 417}
416 418
@@ -935,6 +937,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
935 goto out_fail; 937 goto out_fail;
936 d_instantiate(dentry, inode); 938 d_instantiate(dentry, inode);
937 drop_on_err = 0; 939 drop_on_err = 0;
940 dir->i_sb->s_dirt = 1;
938 941
939out_fail: 942out_fail:
940 btrfs_end_transaction(trans, root); 943 btrfs_end_transaction(trans, root);