From: Tsutomu Itoh Date: Fri, 13 Dec 2013 00:51:42 +0000 (+0900) Subject: Btrfs: fix error check of btrfs_lookup_dentry() X-Git-Tag: v3.14-rc1~29^2~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5662344b3c0d9ddd9afd48716d795166f982d5e2;p=pandora-kernel.git Btrfs: fix error check of btrfs_lookup_dentry() Clean up btrfs_lookup_dentry() to never return NULL, but PTR_ERR(-ENOENT) instead. This keeps the return value convention consistent. Callers who use btrfs_lookup_dentry() require a trivial update. create_snapshot() in particular looks like it can also lose a BUG_ON(!inode) which is not really needed - there seems less harm in returning ENOENT to userspace at that point in the stack than there is to crash the machine. Signed-off-by: Tsutomu Itoh Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed