]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: zstd: don't cache sectorsize in a local variable
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Jan 2026 16:20:34 +0000 (17:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:08 +0000 (18:56 +0200)
commitf0d3b4c7b82b6bc8bf23be58150d49ecc51ec897
tree291e9914e9fc4a0b29016d1c0501f8ade528777b
parentefcf0898a6d01724fc8ea15e55fc39bfb1ecf347
btrfs: zstd: don't cache sectorsize in a local variable

The sectorsize is used once or at most twice in the callbacks, no need
to cache it on stack. Minor effect on zstd_compress_folios() where it
saves 8 bytes of stack.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zstd.c