VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -391,7 +391,7 @@ static int hugetlb_vmtruncate(struct inode *inode, loff_t offset)
|
||||
|
||||
static int hugetlbfs_setattr(struct dentry *dentry, struct iattr *attr)
|
||||
{
|
||||
struct inode *inode = dentry->d_inode;
|
||||
struct inode *inode = d_inode(dentry);
|
||||
struct hstate *h = hstate_inode(inode);
|
||||
int error;
|
||||
unsigned int ia_valid = attr->ia_valid;
|
||||
@@ -585,7 +585,7 @@ static int hugetlbfs_migrate_page(struct address_space *mapping,
|
||||
static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf)
|
||||
{
|
||||
struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb);
|
||||
struct hstate *h = hstate_inode(dentry->d_inode);
|
||||
struct hstate *h = hstate_inode(d_inode(dentry));
|
||||
|
||||
buf->f_type = HUGETLBFS_MAGIC;
|
||||
buf->f_bsize = huge_page_size(h);
|
||||
|
||||
Reference in New Issue
Block a user