Add missing increment to dsl_deadlist_move_bpobj()

dc5c8006f684b1df3f2d4b6b8c121447d2db0017 was recently merged to prefetch
up to 128 deadlists. Unfortunately, a loop was missing an increment,
such that it will prefetch all deadlists. The performance properties of
that patch probably should be re-evaluated.

This was caught by CodeQL's cpp/constant-comparison check in an
experimental branch where I am testing the security-and-extended
queries. It complained about the `i < 128` part of the loop condition
always evaluating to the same thing. The standard CodeQL configuration
we use missed this because it does not include that check.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14573
1 file changed
tree: 2b0f87061232b7b8f16ed8959a7047cc8a2addfa
  1. .github/
  2. cmd/
  3. config/
  4. contrib/
  5. etc/
  6. include/
  7. lib/
  8. man/
  9. module/
  10. rpm/
  11. scripts/
  12. tests/
  13. udev/
  14. .editorconfig
  15. .gitignore
  16. .gitmodules
  17. AUTHORS
  18. autogen.sh
  19. CODE_OF_CONDUCT.md
  20. configure.ac
  21. copy-builtin
  22. COPYRIGHT
  23. LICENSE
  24. Makefile.am
  25. META
  26. NEWS
  27. NOTICE
  28. README.md
  29. RELEASES.md
  30. TEST
  31. zfs.release.in
README.md

img

OpenZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community. This repository contains the code for running OpenZFS on Linux and FreeBSD.

codecov coverity

Official Resources

Installation

Full documentation for installing OpenZFS on your favorite operating system can be found at the Getting Started Page.

Contribute & Develop

We have a separate document with contribution guidelines.

We have a Code of Conduct.

Release

OpenZFS is released under a CDDL license. For more details see the NOTICE, LICENSE and COPYRIGHT files; UCRL-CODE-235197

Supported Kernels

  • The META file contains the officially recognized supported Linux kernel versions.
  • Supported FreeBSD versions are any supported branches and releases starting from 12.2-RELEASE.