HomeFreeBSD

Code cleanups

Description

Code cleanups

  • Allocate ve_search on the stack, so we avoid allocating memory for every I/O even if the VDEV cache is disabled.
  • Reduce lock scope.
  • Avoid locking in vdev_cache_read() when the VDEV cache is disabled.
  • Sort file names properly.
  • Correct comment.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #12749

Details

Provenance
pjdAuthored on Nov 30 2021, 6:32 PM
GitHub <noreply@github.com>Committed on Nov 30 2021, 6:32 PM
Parents
rGcfc62062ae14: Replace wrong occurrences of `affect` by `effect` in the man pages
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG547df816418f: Code cleanups (authored by pjd).Nov 30 2021, 6:32 PM