Lines Matching refs:metapage
45 static struct metapage **hash_table = NULL;
49 static inline int metapage_locked(struct metapage *mp) in metapage_locked()
54 static inline int trylock_metapage(struct metapage *mp) in trylock_metapage()
59 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage()
65 static void __lock_metapage(struct metapage *mp) in __lock_metapage()
85 static inline void lock_metapage(struct metapage *mp) in lock_metapage()
98 static struct metapage *reserved_metapages[METAPOOL_MIN_PAGES];
104 struct metapage *mp = (struct metapage *)foo; in init_once()
126 static struct metapage *alloc_metapage(int *dropped_lock, int no_wait) in alloc_metapage()
128 struct metapage *new; in alloc_metapage()
150 static void __free_metapage(struct metapage *mp) in __free_metapage()
161 static inline void free_metapage(struct metapage * mp) in free_metapage()
170 struct metapage *mp; in metapage_init()
180 metapage_cache = kmem_cache_create("jfs_mp", sizeof(struct metapage), in metapage_init()
202 (struct metapage **) __get_free_pages(GFP_KERNEL, hash_order); in metapage_init()
218 static struct metapage **meta_hash(struct address_space *mapping, in meta_hash()
229 static struct metapage *search_hash(struct metapage ** hash_ptr, in search_hash()
233 struct metapage *ptr; in search_hash()
243 static void add_to_hash(struct metapage * mp, struct metapage ** hash_ptr) in add_to_hash()
253 static void remove_from_hash(struct metapage * mp, struct metapage ** hash_ptr) in remove_from_hash()
266 struct metapage *__get_metapage(struct inode *inode, unsigned long lblock, in __get_metapage()
271 struct metapage **hash_ptr; in __get_metapage()
276 struct metapage *mp; in __get_metapage()
360 struct metapage *mp2; in __get_metapage()
419 void hold_metapage(struct metapage * mp, int force) in hold_metapage()
435 static void __write_metapage(struct metapage * mp) in __write_metapage()
482 static inline void sync_metapage(struct metapage *mp) in sync_metapage()
499 void release_metapage(struct metapage * mp) in release_metapage()
565 struct metapage **hash_ptr; in __invalidate_metapages()
570 struct metapage *mp; in __invalidate_metapages()