diff options
author | David Sterba <dsterba@suse.com> | 2024-05-30 19:14:12 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:22 +0200 |
commit | 2917f74102cf23afe770c1293aabce005f956b4f (patch) | |
tree | ba69c547357811da7b2618e6a7a158ed57b0ec49 /fs/btrfs/uuid-tree.h | |
parent | c27b1dbb713ad0d81f3bbd5ede92caaaedfd8947 (diff) |
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>
Diffstat (limited to 'fs/btrfs/uuid-tree.h')
-rw-r--r-- | fs/btrfs/uuid-tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/uuid-tree.h b/fs/btrfs/uuid-tree.h index 080ede0227aee..a3f5757cc7cff 100644 --- a/fs/btrfs/uuid-tree.h +++ b/fs/btrfs/uuid-tree.h @@ -8,9 +8,9 @@ struct btrfs_trans_handle; struct btrfs_fs_info; -int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, +int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, u64 subid); -int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, +int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, u64 subid); int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info); |