diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 4604178a43a9..4e7b56e9d3a5 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -819,6 +819,10 @@ static noinline int finish_pending_snapshot(struct btrfs_fs_info *fs_info, | |||
819 | if (ret) | 819 | if (ret) |
820 | goto fail; | 820 | goto fail; |
821 | 821 | ||
822 | btrfs_i_size_write(parent_inode, parent_inode->i_size + namelen * 2); | ||
823 | ret = btrfs_update_inode(trans, parent_root, parent_inode); | ||
824 | BUG_ON(ret); | ||
825 | |||
822 | /* add the backref first */ | 826 | /* add the backref first */ |
823 | ret = btrfs_add_root_ref(trans, parent_root->fs_info->tree_root, | 827 | ret = btrfs_add_root_ref(trans, parent_root->fs_info->tree_root, |
824 | pending->root_key.objectid, | 828 | pending->root_key.objectid, |