| commit | 357feb66f50538b437b609c23c2bd7774a39e72b | [log] [tgz] |
|---|---|---|
| author | David Howells <dhowells@redhat.com> | Tue Mar 17 17:33:52 2015 +0000 |
| committer | David Howells <dhowells@redhat.com> | Tue Mar 17 19:06:45 2015 +0000 |
| tree | 2f8c7b7e3687a2ef99616443e949e509580d21b4 | |
| parent | 64314f55471030f4f5f794b8a85dd9cb47a446ca [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>