summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorMinjie Du <duminjie@vivo.com>2023-07-17 15:11:09 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-08-14 13:41:09 -0700
commita842a90926b6b96ef38d6a190c27a4a60531a633 (patch)
treea62d260bebf061f77648ac5269da07767c8cc34a /fs/f2fs/data.c
parent2bd4df8fcbc72f58ce3c62ed021ab291ca42de0b (diff)
f2fs: increase usage of folio_next_index() helper
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index(). Signed-off-by: Minjie Du <duminjie@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ecebc3a139be..5d9697717353 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -3232,8 +3232,7 @@ result:
}
goto next;
}
- done_index = folio->index +
- folio_nr_pages(folio);
+ done_index = folio_next_index(folio);
done = 1;
break;
}