diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-02-20 13:50:31 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 11:30:06 +0100 |
commit | 8e7611cf38765f1bf1324ed1190f1f8e76ab9546 (patch) | |
tree | 1c8382a0b30659ed122fc3422dd457dc9977b901 /fs/btrfs/transaction.c | |
parent | d0a0b78de4a641ff0924687bfd5a9698f1a97f7a (diff) | |
download | blackbird-op-linux-8e7611cf38765f1bf1324ed1190f1f8e76ab9546.tar.gz blackbird-op-linux-8e7611cf38765f1bf1324ed1190f1f8e76ab9546.zip |
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/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 6b3e0fc2fe7a..294563216dd3 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1644,7 +1644,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, ret = btrfs_insert_dir_item(trans, parent_root, dentry->d_name.name, dentry->d_name.len, - parent_inode, &key, + BTRFS_I(parent_inode), &key, BTRFS_FT_DIR, index); /* We have check then name at the beginning, so it is impossible. */ BUG_ON(ret == -EEXIST || ret == -EOVERFLOW); |