diff options
author | David Howells <dhowells@redhat.com> | 2015-05-06 10:59:00 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-11 08:13:10 -0400 |
commit | 63afdfc781e10c6b3ec38274e6163422876caa9a (patch) | |
tree | f6f27074c78bbc7831df32d4c77aebb02fce6b81 /fs/open.c | |
parent | 237d8b327abb428ff39b49e32ce07fdac468e32f (diff) |
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>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ retry: | |||
367 | if (res) | 367 | if (res) |
368 | goto out; | 368 | goto out; |
369 | 369 | ||
370 | inode = path.dentry->d_inode; | 370 | inode = d_backing_inode(path.dentry); |
371 | 371 | ||
372 | if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { | 372 | if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { |
373 | /* | 373 | /* |