From a89458b3b2a08f78c4795816ca34716b110b8aac Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Thu, 6 Jun 2024 09:40:46 +0700 Subject: [PATCH] LU-17904 build: fix typo in vvp_set_batch_dirty Fix typo vvp_set_batch_dirty() when kallsyms_lookup_name() is exported and account_page_dirtied is not. HPE-bug-id: LUS-12374 Test-Parameters: trivial Fixes: b82eab822c0 ("LU-17081 build: Prefer folio_batch to pagevec") Signed-off-by: Shaun Tancheff Change-Id: I8b2e6884e74e384aba6e563bef30072175cc0efc Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55301 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: Petros Koutoupis Reviewed-by: Jian Yu Reviewed-by: James Simmons --- lustre/llite/vvp_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/vvp_io.c b/lustre/llite/vvp_io.c index 1bd96db..18998b3 100644 --- a/lustre/llite/vvp_io.c +++ b/lustre/llite/vvp_io.c @@ -1111,7 +1111,7 @@ static void vvp_set_batch_dirty(struct folio_batch *fbatch) * 4. All mappings are the same because i/o is only to one file. */ for (pgno = i = 0; i < count; i++) { - npgs = fbatch_at_npgs(fbatch, f); + npgs = fbatch_at_npgs(fbatch, i); for (pg = 0; pg < npgs; pg++) { page = fbatch_at_pg(fbatch, i, pg); /* if the i'th page was unlocked above, skip it here */ -- 1.8.3.1