mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
f2fs: Pass a folio to set_mark()
All callers have a folio so pass it in. Removes a call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
b07bfa70e4
commit
61fcaf3eb8
|
|
@ -418,9 +418,9 @@ static inline void set_cold_node(struct page *page, bool is_dir)
|
|||
rn->footer.flag = cpu_to_le32(flag);
|
||||
}
|
||||
|
||||
static inline void set_mark(struct page *page, int mark, int type)
|
||||
static inline void set_mark(struct folio *folio, int mark, int type)
|
||||
{
|
||||
struct f2fs_node *rn = F2FS_NODE(page);
|
||||
struct f2fs_node *rn = F2FS_NODE(&folio->page);
|
||||
unsigned int flag = le32_to_cpu(rn->footer.flag);
|
||||
if (mark)
|
||||
flag |= BIT(type);
|
||||
|
|
@ -429,8 +429,8 @@ static inline void set_mark(struct page *page, int mark, int type)
|
|||
rn->footer.flag = cpu_to_le32(flag);
|
||||
|
||||
#ifdef CONFIG_F2FS_CHECK_FS
|
||||
f2fs_inode_chksum_set(F2FS_P_SB(page), page);
|
||||
f2fs_inode_chksum_set(F2FS_F_SB(folio), &folio->page);
|
||||
#endif
|
||||
}
|
||||
#define set_dentry_mark(folio, mark) set_mark(&folio->page, mark, DENT_BIT_SHIFT)
|
||||
#define set_fsync_mark(folio, mark) set_mark(&folio->page, mark, FSYNC_BIT_SHIFT)
|
||||
#define set_dentry_mark(folio, mark) set_mark(folio, mark, DENT_BIT_SHIFT)
|
||||
#define set_fsync_mark(folio, mark) set_mark(folio, mark, FSYNC_BIT_SHIFT)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user