diff options
author | David Howells <dhowells@redhat.com> | 2015-05-06 16:59:00 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-11 14:13:10 +0200 |
commit | 63afdfc781e10c6b3ec38274e6163422876caa9a (patch) | |
tree | f6f27074c78bbc7831df32d4c77aebb02fce6b81 /fs/open.c | |
parent | namei: store inode in nd->stack[] (diff) | |
download | linux-63afdfc781e10c6b3ec38274e6163422876caa9a.tar.xz linux-63afdfc781e10c6b3ec38274e6163422876caa9a.zip |
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)) { /* |