Whamcloud - gitweb
LU-17904 build: fix typo in vvp_set_batch_dirty 01/55301/4
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 6 Jun 2024 02:40:46 +0000 (09:40 +0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Jul 2024 20:11:33 +0000 (20:11 +0000)
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 <shaun.tancheff@hpe.com>
Change-Id: I8b2e6884e74e384aba6e563bef30072175cc0efc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55301
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/llite/vvp_io.c

index 1bd96db..18998b3 100644 (file)
@@ -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 */