diff options
author | David Howells <dhowells@redhat.com> | 2015-05-06 15:59:00 +0100 |
---|---|---|
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) | |
download | op-kernel-dev-63afdfc781e10c6b3ec38274e6163422876caa9a.zip op-kernel-dev-63afdfc781e10c6b3ec38274e6163422876caa9a.tar.gz |
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: if (res) goto out; - inode = path.dentry->d_inode; + inode = d_backing_inode(path.dentry); if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { /* |