summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2024-03-27 02:27:02 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2024-04-12 22:58:35 +0200
commit16778aea91869756cad3e07c9ce8ef32a660358c (patch)
tree3edf5a2d22a1934200a66f176b3bdc2e5d48dc6d /fs/f2fs/gc.c
parentf2fs: add REQ_TIME time update for some user behaviors (diff)
downloadlinux-16778aea91869756cad3e07c9ce8ef32a660358c.tar.xz
linux-16778aea91869756cad3e07c9ce8ef32a660358c.zip
f2fs: use folio_test_writeback
Let's convert PageWriteback to folio_test_writeback. Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 8852814dab7f..ac4cbbe50c2f 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -1434,7 +1434,7 @@ static int move_data_page(struct inode *inode, block_t bidx, int gc_type,
goto out;
if (gc_type == BG_GC) {
- if (PageWriteback(page)) {
+ if (folio_test_writeback(page_folio(page))) {
err = -EAGAIN;
goto out;
}