Lines Matching defs:inode

252 static inline struct hugepage_subpool *subpool_inode(struct inode *inode)
254 return HUGETLBFS_SB(inode->i_sb)->spool;
934 void hugetlb_fix_reserve_counts(struct inode *inode)
936 struct hugepage_subpool *spool = subpool_inode(inode);
942 struct hstate *h = hstate_inode(inode);
1141 static inline struct resv_map *inode_resv_map(struct inode *inode)
1144 * At inode evict time, i_mapping may not point to the original
1145 * address space within the inode. This original address space
1147 * address space embedded within the inode.
1148 * The VERY common case is inode->mapping == &inode->i_data but,
1151 return (struct resv_map *)(&inode->i_data)->private_data;
1159 struct inode *inode = mapping->host;
1161 return inode_resv_map(inode);
1261 * reserve count remains after releasing inode, because this
5775 struct inode *inode = mapping->host;
5776 struct hstate *h = hstate_inode(inode);
5794 spin_lock(&inode->i_lock);
5795 inode->i_blocks += blocks_per_huge_page(h);
5796 spin_unlock(&inode->i_lock);
6710 bool hugetlb_reserve_pages(struct inode *inode,
6716 struct hstate *h = hstate_inode(inode);
6717 struct hugepage_subpool *spool = subpool_inode(inode);
6754 resv_map = inode_resv_map(inode);
6870 long hugetlb_unreserve_pages(struct inode *inode, long start, long end,
6873 struct hstate *h = hstate_inode(inode);
6874 struct resv_map *resv_map = inode_resv_map(inode);
6876 struct hugepage_subpool *spool = subpool_inode(inode);
6880 * Since this routine can be called in the evict inode path for all
6894 spin_lock(&inode->i_lock);
6895 inode->i_blocks -= (blocks_per_huge_page(h) * freed);
6896 spin_unlock(&inode->i_lock);