diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 17:33:52 +0000 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:05:29 -0400 |
commit | 698934df8b45da2a06816ee2d7f9a9034e671e62 (patch) | |
tree | 054b19e810747a2ced5cce3f417dc6e74f816a7b /fs/debugfs | |
parent | 88e7fbd4a599375a08876e80a76d92e49fdea55c (diff) |
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions