diff options
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r-- | fs/hugetlbfs/inode.c | 4 |
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 | ||
392 | static int hugetlbfs_setattr(struct dentry *dentry, struct iattr *attr) | 392 | static 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, | |||
585 | static int hugetlbfs_statfs(struct dentry *dentry, struct kstatfs *buf) | 585 | static 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); |