]> git.proxmox.com Git - mirror_zfs.git/commit
Code cleanups
authorPawel Jakub Dawidek <pawel@dawidek.net>
Tue, 30 Nov 2021 18:32:38 +0000 (10:32 -0800)
committerGitHub <noreply@github.com>
Tue, 30 Nov 2021 18:32:38 +0000 (10:32 -0800)
commit547df816418f67ddef958bc0f44ae956e45014f1
treec858c1c60da20ab92c377e2d94170ca3c1c64c8c
parentcfc62062ae1455e4679bd386e2a140a64e6e62ab
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
lib/libzpool/Makefile.am
module/Makefile.bsd
module/zfs/dbuf.c
module/zfs/vdev_cache.c
module/zfs/vdev_queue.c