summaryrefslogtreecommitdiff
path: root/fs/btrfs/ref-verify.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-05-15 17:03:24 +0200
committerDavid Sterba <dsterba@suse.com>2025-07-21 23:53:26 +0200
commitccb42a6eed8bf26b7a62e87334ad9c1a4d017398 (patch)
treebbf623963eff559e172c40bd6dfc811697d666fe /fs/btrfs/ref-verify.c
parentc7f04fbc98dcf81723bb2fdc65d905a38fc38f3c (diff)
btrfs: constify more pointer parameters
Another batch of pointer parameter constifications. This is for clarity and minor addition to type safety. There are no observable effects in the assembly code and .ko measured on release config. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ref-verify.c')
-rw-r--r--fs/btrfs/ref-verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ref-verify.c b/fs/btrfs/ref-verify.c
index 3ae9f3ca7593..3871c3a6c743 100644
--- a/fs/btrfs/ref-verify.c
+++ b/fs/btrfs/ref-verify.c
@@ -650,7 +650,7 @@ static void dump_block_entry(struct btrfs_fs_info *fs_info,
* our sanity checks pass as they are no longer needed.
*/
int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
- struct btrfs_ref *generic_ref)
+ const struct btrfs_ref *generic_ref)
{
struct ref_entry *ref = NULL, *exist;
struct ref_action *ra = NULL;