aboutsummaryrefslogtreecommitdiff
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:
btrfs_update_inode(trans, root, dir);
drop_nlink(dentry->d_inode);
btrfs_update_inode(trans, root, dentry->d_inode);
+ dir->i_sb->s_dirt = 1;
}
return ret;
}
@@ -411,6 +412,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans,
error:
btrfs_release_path(root, path);
btrfs_free_path(path);
+ inode->i_sb->s_dirt = 1;
return ret;
}
@@ -935,6 +937,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
goto out_fail;
d_instantiate(dentry, inode);
drop_on_err = 0;
+ dir->i_sb->s_dirt = 1;
out_fail:
btrfs_end_transaction(trans, root);