aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:25:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:57 -0400
commit2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch)
tree98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/hugetlbfs
parentce0b16ddf18df35026164fda4a642ef10c01f442 (diff)
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>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r--fs/hugetlbfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 8c2dad629e7c..7a20dbfd1e38 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -391,7 +391,7 @@ static int hugetlb_vmtruncate(struct inode *inode, loff_t offset)
391 391
392static int hugetlbfs_setattr(struct dentry *dentry, struct iattr *attr) 392static int hugetlbfs_setattr(struct dentry *dentry, struct iattr *attr)
393{ 393{
394 struct inode *inode = dentry->d_inode; 394 struct inode *inode = d_inode(dentry);
395 struct hstate *h = hstate_inode(inode); 395 struct hstate *h = hstate_inode(inode);
396 int error; 396 int error;
397 unsigned int ia_valid = attr->ia_valid; 397 unsigned int ia_valid = attr->ia_valid;
@@ -585,7 +585,7 @@ static int hugetlbfs_migrate_page(struct address_space *mapping,
585static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf) 585static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf)
586{ 586{
587 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb); 587 struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(dentry->d_sb);
588 struct hstate *h = hstate_inode(dentry->d_inode); 588 struct hstate *h = hstate_inode(d_inode(dentry));
589 589
590 buf->f_type = HUGETLBFS_MAGIC; 590 buf->f_type = HUGETLBFS_MAGIC;
591 buf->f_bsize = huge_page_size(h); 591 buf->f_bsize = huge_page_size(h);