summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-02-20 14:50:31 +0300
committerDavid Sterba <dsterba@suse.com>2017-02-28 13:30:06 +0300
commit8e7611cf38765f1bf1324ed1190f1f8e76ab9546 (patch)
tree1c8382a0b30659ed122fc3422dd457dc9977b901 /fs/btrfs/inode.c
parentd0a0b78de4a641ff0924687bfd5a9698f1a97f7a (diff)
downloadlinux-8e7611cf38765f1bf1324ed1190f1f8e76ab9546.tar.xz
btrfs: Make btrfs_insert_dir_item take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c38391e948d9..a23391b52ab1 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6276,7 +6276,7 @@ int btrfs_add_link(struct btrfs_trans_handle *trans,
return ret;
ret = btrfs_insert_dir_item(trans, root, name, name_len,
- parent_inode, &key,
+ BTRFS_I(parent_inode), &key,
btrfs_inode_type(inode), index);
if (ret == -EEXIST || ret == -EOVERFLOW)
goto fail_dir_item;