diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index aef6c81e7101..f4c1184b7f1a 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -972,7 +972,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
972 | BUG_ON(ret); | 972 | BUG_ON(ret); |
973 | ret = btrfs_insert_dir_item(trans, parent_root, | 973 | ret = btrfs_insert_dir_item(trans, parent_root, |
974 | dentry->d_name.name, dentry->d_name.len, | 974 | dentry->d_name.name, dentry->d_name.len, |
975 | parent_inode->i_ino, &key, | 975 | btrfs_ino(parent_inode), &key, |
976 | BTRFS_FT_DIR, index); | 976 | BTRFS_FT_DIR, index); |
977 | BUG_ON(ret); | 977 | BUG_ON(ret); |
978 | 978 | ||
@@ -1014,7 +1014,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1014 | */ | 1014 | */ |
1015 | ret = btrfs_add_root_ref(trans, tree_root, objectid, | 1015 | ret = btrfs_add_root_ref(trans, tree_root, objectid, |
1016 | parent_root->root_key.objectid, | 1016 | parent_root->root_key.objectid, |
1017 | parent_inode->i_ino, index, | 1017 | btrfs_ino(parent_inode), index, |
1018 | dentry->d_name.name, dentry->d_name.len); | 1018 | dentry->d_name.name, dentry->d_name.len); |
1019 | BUG_ON(ret); | 1019 | BUG_ON(ret); |
1020 | dput(parent); | 1020 | dput(parent); |