diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 18:26:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:59 -0400 |
commit | bb668734c4c960c8f61f017585b323b97e5f47b5 (patch) | |
tree | e9c90394fb8342aeccd1b337c2e7949c5c843bec /fs/stat.c | |
parent | df2b1afde178f01c6a1b2ec285ca8bcfd4c66640 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(generic_fillattr); | |||
51 | */ | 51 | */ |
52 | int vfs_getattr_nosec(struct path *path, struct kstat *stat) | 52 | int 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, | |||
326 | retry: | 326 | retry: |
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) { |