Lines Matching refs:page

239 static inline nid_t ino_of_node(struct page *node_page)
245 static inline nid_t nid_of_node(struct page *node_page)
251 static inline unsigned int ofs_of_node(struct page *node_page)
258 static inline __u64 cpver_of_node(struct page *node_page)
264 static inline block_t next_blkaddr_of_node(struct page *node_page)
270 static inline void fill_node_footer(struct page *page, nid_t nid,
273 struct f2fs_node *rn = F2FS_NODE(page);
289 static inline void copy_node_footer(struct page *dst, struct page *src)
296 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr)
298 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page));
299 struct f2fs_node *rn = F2FS_NODE(page);
309 static inline bool is_recoverable_dnode(struct page *page)
311 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page));
316 return (cp_ver << 32) == (cpver_of_node(page) << 32);
321 return cp_ver == cpver_of_node(page);
345 static inline bool IS_DNODE(struct page *node_page)
363 static inline int set_nid(struct page *p, int off, nid_t nid, bool i)
376 static inline nid_t get_nid(struct page *p, int off, bool i)
389 * - Mark cold data pages in page cache
391 static inline int is_cold_data(struct page *page)
393 return PageChecked(page);
396 static inline void set_cold_data(struct page *page)
398 SetPageChecked(page);
401 static inline void clear_cold_data(struct page *page)
403 ClearPageChecked(page);
406 static inline int is_node(struct page *page, int type)
408 struct f2fs_node *rn = F2FS_NODE(page);
412 #define is_cold_node(page) is_node(page, COLD_BIT_SHIFT)
413 #define is_fsync_dnode(page) is_node(page, FSYNC_BIT_SHIFT)
414 #define is_dent_dnode(page) is_node(page, DENT_BIT_SHIFT)
416 static inline int is_inline_node(struct page *page)
418 return PageChecked(page);
421 static inline void set_inline_node(struct page *page)
423 SetPageChecked(page);
426 static inline void clear_inline_node(struct page *page)
428 ClearPageChecked(page);
431 static inline void set_cold_node(struct page *page, bool is_dir)
433 struct f2fs_node *rn = F2FS_NODE(page);
443 static inline void set_mark(struct page *page, int mark, int type)
445 struct f2fs_node *rn = F2FS_NODE(page);
454 f2fs_inode_chksum_set(F2FS_P_SB(page), page);
457 #define set_dentry_mark(page, mark) set_mark(page, mark, DENT_BIT_SHIFT)
458 #define set_fsync_mark(page, mark) set_mark(page, mark, FSYNC_BIT_SHIFT)