From: David Howells Date: Tue, 17 Mar 2015 17:33:52 +0000 (+0000) Subject: VFS: Combine inode checks with d_is_negative() and d_is_positive() in pathwalk X-Git-Tag: omap-for-v4.1/fixes-rc1~116^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=698934df8b45da2a06816ee2d7f9a9034e671e62;p=pandora-kernel.git VFS: Combine inode checks with d_is_negative() and d_is_positive() in pathwalk Where we have: if (!dentry->d_inode || d_is_negative(dentry)) { type constructions in pathwalk we should be able to eliminate the check of d_inode and rely solely on the result of d_is_negative() or d_is_positive(). What we do have to take care to do is to read d_inode after calling a d_is_xxx() typecheck function to get the barriering right. Signed-off-by: David Howells Signed-off-by: Al Viro --- Reading git-diff-tree failed