]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make btrfs_add_nondir take parent inode as an argument
authorJosef Bacik <josef@redhat.com>
Fri, 19 Nov 2010 20:36:11 +0000 (20:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 22 Nov 2010 03:26:10 +0000 (22:26 -0500)
commited7425937cfa213532ef9e69b21f702afc454a67
tree0699a0490e11efb6fc2b1a2e99fa6419e9e568fa
parentc4a9a9b00405477331b2f3ad8133eae1c2844642
Btrfs: make btrfs_add_nondir take parent inode as an argument

Everybody who calls btrfs_add_nondir just passes in the dentry of the new file
and then dereference dentry->d_parent->d_inode, but everybody who calls
btrfs_add_nondir() are already passed the parent's inode.  So instead of
dereferencing dentry->d_parent, just make btrfs_add_nondir take the dir inode as
an argument and pass that along so we don't have to worry about d_parent.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c