]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: constify more pointer parameters
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Aug 2025 02:27:53 +0000 (22:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:41 +0000 (16:28 +0200)
commitd7badc2ba4da314da6a8947089929f53f10eb245
tree13b0de6a1ca7799ad163e26c7a2ae2fdd7e5533e
parent9dfdea89ceb3b6c193ad205892083665aae71a13
btrfs: constify more pointer parameters

[ Upstream commit ca283ea9920ac20ae23ed398b693db3121045019 ]

Continue adding const to parameters.  This is for clarity and minor
addition to safety. There are some minor effects, in the assembly code
and .ko measured on release config.

Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 files changed:
fs/btrfs/backref.c
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/block-rsv.c
fs/btrfs/block-rsv.h
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/discard.c
fs/btrfs/file-item.c
fs/btrfs/file-item.h
fs/btrfs/inode-item.c
fs/btrfs/inode-item.h
fs/btrfs/space-info.c
fs/btrfs/space-info.h
fs/btrfs/tree-mod-log.c
fs/btrfs/tree-mod-log.h
fs/btrfs/zoned.c
fs/btrfs/zoned.h
include/trace/events/btrfs.h