From: Filipe Manana Date: Fri, 21 Mar 2014 12:46:54 +0000 (+0000) Subject: Btrfs: send, avoid unnecessary inode item lookup in the btree X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46ab97bcd4ae7954b3a150f642a82cdd1434f40;p=pandora-kernel.git Btrfs: send, avoid unnecessary inode item lookup in the btree Regardless of whether the caller is interested or not in knowing the inode's generation (dir_gen != NULL), get_first_ref always does a btree lookup to get the inode item. Avoid this useless lookup if dir_gen parameter is NULL (which is in some cases). Signed-off-by: Filipe David Borba Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed