From: Josef Bacik Date: Fri, 19 Nov 2010 20:36:11 +0000 (+0000) Subject: Btrfs: make btrfs_add_nondir take parent inode as an argument X-Git-Tag: v2.6.37-rc4~6^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b075d28da563c5e2325577f282c042494254ba;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed