summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-05-06 17:59:00 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-11 15:13:10 +0300
commit63afdfc781e10c6b3ec38274e6163422876caa9a (patch)
treef6f27074c78bbc7831df32d4c77aebb02fce6b81 /fs/open.c
parent237d8b327abb428ff39b49e32ce07fdac468e32f (diff)
downloadlinux-63afdfc781e10c6b3ec38274e6163422876caa9a.tar.xz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 98e5a52dc68c..e0250bdcc440 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -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)) {
/*