VFS: kernel/: d_inode() annotations
relayfs and tracefs are dealing with inodes of their own; those two act as filesystem drivers Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3b362157b2
commit
7682c91843
4 changed files with 9 additions and 9 deletions
|
@ -407,7 +407,7 @@ static inline void relay_set_buf_dentry(struct rchan_buf *buf,
|
|||
struct dentry *dentry)
|
||||
{
|
||||
buf->dentry = dentry;
|
||||
buf->dentry->d_inode->i_size = buf->early_bytes;
|
||||
d_inode(buf->dentry)->i_size = buf->early_bytes;
|
||||
}
|
||||
|
||||
static struct dentry *relay_create_buf_file(struct rchan *chan,
|
||||
|
@ -733,7 +733,7 @@ size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length)
|
|||
buf->padding[old_subbuf] = buf->prev_padding;
|
||||
buf->subbufs_produced++;
|
||||
if (buf->dentry)
|
||||
buf->dentry->d_inode->i_size +=
|
||||
d_inode(buf->dentry)->i_size +=
|
||||
buf->chan->subbuf_size -
|
||||
buf->padding[old_subbuf];
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue