diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-03-31 21:10:58 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-04-28 15:26:31 +0000 |
commit | 6b5c4a035913480fe328704f98ee1c5b3748842b (patch) | |
tree | 66c7415d3d7c821e9d7013961e4c4872cb5bac2c /fs | |
parent | 350b8441c0e9472a389586cbf9d36afd627feed1 (diff) |
f2fs: Pass an address to scan_nat_page()
Remove a conversion from folio to page by passing in the address of the
first byte rather than the struct page containing it.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 77ca3b5ce285..bea66ccd8152 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2421,10 +2421,9 @@ static void remove_free_nid(struct f2fs_sb_info *sbi, nid_t nid) } static int scan_nat_page(struct f2fs_sb_info *sbi, - struct page *nat_page, nid_t start_nid) + struct f2fs_nat_block *nat_blk, nid_t start_nid) { struct f2fs_nm_info *nm_i = NM_I(sbi); - struct f2fs_nat_block *nat_blk = page_address(nat_page); block_t blk_addr; unsigned int nat_ofs = NAT_BLOCK_OFFSET(start_nid); int i; @@ -2549,7 +2548,8 @@ static int __f2fs_build_free_nids(struct f2fs_sb_info *sbi, if (IS_ERR(folio)) { ret = PTR_ERR(folio); } else { - ret = scan_nat_page(sbi, &folio->page, nid); + ret = scan_nat_page(sbi, folio_address(folio), + nid); f2fs_folio_put(folio, true); } |