aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index e7a8303328b2..db67821ccac2 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4823,10 +4823,11 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
4823 goto fail; 4823 goto fail;
4824 4824
4825 /* 4825 /*
4826 * 1 item for inode ref 4826 * 2 items for inode and inode ref
4827 * 2 items for dir items 4827 * 2 items for dir items
4828 * 1 item for parent inode
4828 */ 4829 */
4829 trans = btrfs_start_transaction(root, 3); 4830 trans = btrfs_start_transaction(root, 5);
4830 if (IS_ERR(trans)) { 4831 if (IS_ERR(trans)) {
4831 err = PTR_ERR(trans); 4832 err = PTR_ERR(trans);
4832 goto fail; 4833 goto fail;