diff options
| author | Chao Yu <chao@kernel.org> | 2024-08-13 22:13:27 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-09-06 23:04:47 +0000 |
| commit | 46a75ef866030b3500bf15fd3400c6779eb33752 (patch) | |
| tree | d27dde8e84268b5ed1fc91a7ffc398af816df745 /fs/f2fs/compress.c | |
| parent | f2fs: convert f2fs_write_inline_data() to use folio (diff) | |
| download | linux-46a75ef866030b3500bf15fd3400c6779eb33752.tar.gz linux-46a75ef866030b3500bf15fd3400c6779eb33752.zip | |
f2fs: convert f2fs_write_single_data_page() to use folio
Convert to use folio, so that we can get rid of 'page->index' to
prepare for removal of 'index' field in structure page [1].
[1] https://lore.kernel.org/all/Zp8fgUSIBGQ1TN0D@casper.infradead.org/
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/compress.c')
| -rw-r--r-- | fs/f2fs/compress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index a96c7b16fe19..630bb78655d5 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1543,7 +1543,8 @@ continue_unlock: if (!clear_page_dirty_for_io(cc->rpages[i])) goto continue_unlock; - ret = f2fs_write_single_data_page(cc->rpages[i], &submitted, + ret = f2fs_write_single_data_page(page_folio(cc->rpages[i]), + &submitted, NULL, NULL, wbc, io_type, compr_blocks, false); if (ret) { |
