btrfs: constify pointer parameters where applicable
authorDavid Sterba <dsterba@suse.com>
Thu, 30 May 2024 17:14:12 +0000 (19:14 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:22 +0000 (15:33 +0200)
commit2917f74102cf23afe770c1293aabce005f956b4f
treeba69c547357811da7b2618e6a7a158ed57b0ec49
parentc27b1dbb713ad0d81f3bbd5ede92caaaedfd8947
btrfs: constify pointer parameters where applicable

We can add const to many 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. This patch does not cover all
possible conversions.

Signed-off-by: David Sterba <dsterba@suse.com>
31 files changed:
fs/btrfs/btrfs_inode.h
fs/btrfs/delalloc-space.c
fs/btrfs/delalloc-space.h
fs/btrfs/delayed-inode.c
fs/btrfs/delayed-inode.h
fs/btrfs/dir-item.c
fs/btrfs/dir-item.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/fs.h
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h
fs/btrfs/misc.h
fs/btrfs/props.c
fs/btrfs/props.h
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h
fs/btrfs/send.c
fs/btrfs/send.h
fs/btrfs/super.c
fs/btrfs/super.h
fs/btrfs/uuid-tree.c
fs/btrfs/uuid-tree.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h
fs/btrfs/xattr.c
fs/btrfs/xattr.h
fs/btrfs/zoned.c
fs/btrfs/zoned.h