VFS: Handle lower layer dentry/inode in pathwalk

Make use of d_backing_inode() in pathwalk to gain access to an
inode or dentry that's on a lower layer.

Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
David Howells
2015-05-06 15:59:00 +01:00
committed by Al Viro
parent 237d8b327a
commit 63afdfc781
2 changed files with 6 additions and 6 deletions

View File

@@ -367,7 +367,7 @@ retry:
if (res)
goto out;
inode = path.dentry->d_inode;
inode = d_backing_inode(path.dentry);
if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) {
/*