Lines Matching defs:inode

253 static inline struct hugepage_subpool *subpool_inode(struct inode *inode)
255 return HUGETLBFS_SB(inode->i_sb)->spool;
935 void hugetlb_fix_reserve_counts(struct inode *inode)
937 struct hugepage_subpool *spool = subpool_inode(inode);
943 struct hstate *h = hstate_inode(inode);
1135 static inline struct resv_map *inode_resv_map(struct inode *inode)
1138 * At inode evict time, i_mapping may not point to the original
1139 * address space within the inode. This original address space
1141 * address space embedded within the inode.
1142 * The VERY common case is inode->mapping == &inode->i_data but,
1145 return (struct resv_map *)(&inode->i_data)->i_private_data;
1153 struct inode *inode = mapping->host;
1155 return inode_resv_map(inode);
1255 * reserve count remains after releasing inode, because this
6136 struct inode *inode = mapping->host;
6137 struct hstate *h = hstate_inode(inode);
6156 spin_lock(&inode->i_lock);
6157 inode->i_blocks += blocks_per_huge_page(h);
6158 spin_unlock(&inode->i_lock);
7095 bool hugetlb_reserve_pages(struct inode *inode,
7101 struct hstate *h = hstate_inode(inode);
7102 struct hugepage_subpool *spool = subpool_inode(inode);
7139 resv_map = inode_resv_map(inode);
7255 long hugetlb_unreserve_pages(struct inode *inode, long start, long end,
7258 struct hstate *h = hstate_inode(inode);
7259 struct resv_map *resv_map = inode_resv_map(inode);
7261 struct hugepage_subpool *spool = subpool_inode(inode);
7265 * Since this routine can be called in the evict inode path for all
7279 spin_lock(&inode->i_lock);
7280 inode->i_blocks -= (blocks_per_huge_page(h) * freed);
7281 spin_unlock(&inode->i_lock);