diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-27 10:08:34 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-27 10:08:34 -0400 |
commit | cd1bc4653dc37f6390f4d6df4f987044c64f700b (patch) | |
tree | ff259c33e47159758d70a6d8bdc1ff5d47f710bb /fs/btrfs/super.c | |
parent | 9078a3e1e4e489dddc636c7bb8780349d4298743 (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.c | 3 |
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, | |||
411 | error: | 412 | error: |
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 | ||
939 | out_fail: | 942 | out_fail: |
940 | btrfs_end_transaction(trans, root); | 943 | btrfs_end_transaction(trans, root); |