summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/zoned.c
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/zoned.c
parentbtrfs: rework BTRFS_I as macro to preserve parameter const (diff)
downloadlinux-ca283ea9920ac20ae23ed398b693db3121045019.tar.xz
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/zoned.c')
-rw-r--r--fs/btrfs/zoned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 047e3337852e..71e184120a9b 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -2459,7 +2459,7 @@ void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info)
mutex_unlock(&fs_devices->device_list_mutex);
}
-bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info)
+bool btrfs_zoned_should_reclaim(const struct btrfs_fs_info *fs_info)
{
struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
struct btrfs_device *device;