mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
VFS: assorted d_backing_inode() annotations
Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
df2b1afde1
commit
bb668734c4
6 changed files with 12 additions and 12 deletions
|
@ -51,7 +51,7 @@ EXPORT_SYMBOL(generic_fillattr);
|
|||
*/
|
||||
int vfs_getattr_nosec(struct path *path, struct kstat *stat)
|
||||
{
|
||||
struct inode *inode = path->dentry->d_inode;
|
||||
struct inode *inode = d_backing_inode(path->dentry);
|
||||
|
||||
if (inode->i_op->getattr)
|
||||
return inode->i_op->getattr(path->mnt, path->dentry, stat);
|
||||
|
@ -326,7 +326,7 @@ SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname,
|
|||
retry:
|
||||
error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty);
|
||||
if (!error) {
|
||||
struct inode *inode = path.dentry->d_inode;
|
||||
struct inode *inode = d_backing_inode(path.dentry);
|
||||
|
||||
error = empty ? -ENOENT : -EINVAL;
|
||||
if (inode->i_op->readlink) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue