summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-mod-log.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-06-26 23:39:11 +0200
committerDavid Sterba <dsterba@suse.com>2024-09-10 16:51:22 +0200
commitca283ea9920ac20ae23ed398b693db3121045019 (patch)
treeae7dcc674f4d37136aa9bf1acb64b620dbbbe400 /fs/btrfs/tree-mod-log.h
parent070969f17d82e4220f5800ea63139e513cdb17fd (diff)
downloadlinux-ca283ea9920ac20ae23ed398b693db3121045019.tar.gz
linux-ca283ea9920ac20ae23ed398b693db3121045019.tar.bz2
linux-ca283ea9920ac20ae23ed398b693db3121045019.zip
btrfs: constify more pointer parameters
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>
Diffstat (limited to 'fs/btrfs/tree-mod-log.h')
-rw-r--r--fs/btrfs/tree-mod-log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-mod-log.h b/fs/btrfs/tree-mod-log.h
index ff00c8e8a393..6308c577a4a4 100644
--- a/fs/btrfs/tree-mod-log.h
+++ b/fs/btrfs/tree-mod-log.h
@@ -37,7 +37,7 @@ void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root,
struct extent_buffer *new_root,
bool log_removal);
-int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot,
+int btrfs_tree_mod_log_insert_key(const struct extent_buffer *eb, int slot,
enum btrfs_mod_log_op op);
int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb);
struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info,
@@ -47,11 +47,11 @@ struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info,
struct extent_buffer *btrfs_get_old_root(struct btrfs_root *root, u64 time_seq);
int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
int btrfs_tree_mod_log_eb_copy(struct extent_buffer *dst,
- struct extent_buffer *src,
+ const struct extent_buffer *src,
unsigned long dst_offset,
unsigned long src_offset,
int nr_items);
-int btrfs_tree_mod_log_insert_move(struct extent_buffer *eb,
+int btrfs_tree_mod_log_insert_move(const struct extent_buffer *eb,
int dst_slot, int src_slot,
int nr_items);
u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);