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 | linux-63afdfc781e10c6b3ec38274e6163422876caa9a.tar.bz2 |
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
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)) { /* |