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>
* 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 */