summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/compress.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-08-20 22:55:07 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-09-06 23:04:48 +0000
commit5697e94daab9e40cbf1fb368781d110f22fb6760 (patch)
tree8a35900807a848da74a966ce4eb6c1d953c100ed /fs/f2fs/compress.c
parentf2fs: convert read_node_page() to use folio (diff)
downloadlinux-5697e94daab9e40cbf1fb368781d110f22fb6760.tar.gz
linux-5697e94daab9e40cbf1fb368781d110f22fb6760.zip
f2fs: get rid of page->index
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> Reviewed-by: Li Zetao <lizetao1@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/compress.c')
-rw-r--r--fs/f2fs/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index e642c869db4a..7f26440e8595 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -881,7 +881,7 @@ static bool cluster_has_invalid_data(struct compress_ctx *cc)
f2fs_bug_on(F2FS_I_SB(cc->inode), !page);
/* beyond EOF */
- if (page->index >= nr_pages)
+ if (page_folio(page)->index >= nr_pages)
return true;
}
return false;