summaryrefslogtreecommitdiffstats
path: root/fs/stat.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:26:21 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:59 -0400
commitbb668734c4c960c8f61f017585b323b97e5f47b5 (patch)
treee9c90394fb8342aeccd1b337c2e7949c5c843bec /fs/stat.c
parentdf2b1afde178f01c6a1b2ec285ca8bcfd4c66640 (diff)
VFS: assorted d_backing_inode() annotations
Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/stat.c')
-rw-r--r--fs/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/stat.c b/fs/stat.c
index 19636af5e75c..cccc1aab9a8b 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(generic_fillattr);
51 */ 51 */
52int vfs_getattr_nosec(struct path *path, struct kstat *stat) 52int vfs_getattr_nosec(struct path *path, struct kstat *stat)
53{ 53{
54 struct inode *inode = path->dentry->d_inode; 54 struct inode *inode = d_backing_inode(path->dentry);
55 55
56 if (inode->i_op->getattr) 56 if (inode->i_op->getattr)
57 return inode->i_op->getattr(path->mnt, path->dentry, stat); 57 return inode->i_op->getattr(path->mnt, path->dentry, stat);
@@ -326,7 +326,7 @@ SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname,
326retry: 326retry:
327 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); 327 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty);
328 if (!error) { 328 if (!error) {
329 struct inode *inode = path.dentry->d_inode; 329 struct inode *inode = d_backing_inode(path.dentry);
330 330
331 error = empty ? -ENOENT : -EINVAL; 331 error = empty ? -ENOENT : -EINVAL;
332 if (inode->i_op->readlink) { 332 if (inode->i_op->readlink) {