mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
VFS: net/: d_inode() annotations
socket inodes and sunrpc filesystems - inodes owned by that code Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a25b376bde
commit
c5ef603528
2 changed files with 19 additions and 19 deletions
|
@ -312,7 +312,7 @@ static const struct super_operations sockfs_ops = {
|
|||
static char *sockfs_dname(struct dentry *dentry, char *buffer, int buflen)
|
||||
{
|
||||
return dynamic_dname(dentry, buffer, buflen, "socket:[%lu]",
|
||||
dentry->d_inode->i_ino);
|
||||
d_inode(dentry)->i_ino);
|
||||
}
|
||||
|
||||
static const struct dentry_operations sockfs_dentry_operations = {
|
||||
|
@ -375,7 +375,7 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
|
|||
&socket_file_ops);
|
||||
if (unlikely(IS_ERR(file))) {
|
||||
/* drop dentry, keep inode */
|
||||
ihold(path.dentry->d_inode);
|
||||
ihold(d_inode(path.dentry));
|
||||
path_put(&path);
|
||||
return file;
|
||||
}
|
||||
|
@ -497,7 +497,7 @@ static ssize_t sockfs_listxattr(struct dentry *dentry, char *buffer,
|
|||
ssize_t len;
|
||||
ssize_t used = 0;
|
||||
|
||||
len = security_inode_listsecurity(dentry->d_inode, buffer, size);
|
||||
len = security_inode_listsecurity(d_inode(dentry), buffer, size);
|
||||
if (len < 0)
|
||||
return len;
|
||||
used += len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue