btrfs: constify parameters of write_eb_member() and its users
authorDavid Sterba <dsterba@suse.com>
Mon, 20 May 2024 18:49:18 +0000 (20:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:19 +0000 (15:33 +0200)
commit56e6f2687521390bead4e4ea279ca4eec15579ef
tree345b22d78e1be7bb21fda01d731c9776a996d9e1
parent840a97bdef1e5d7bd8bf147812df416cca15afc7
btrfs: constify parameters of write_eb_member() and its users

Reported by 'gcc -Wcast-qual', the argument from which write_extent_buffer()
reads data to write to the eb should be const. In addition the const
needs to be also added to __write_extent_buffer() local buffers.

All callers of write_eb_member() can now be updated to use const for the
input buffer structure or type.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/accessors.h
fs/btrfs/extent_io.c