summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-19 11:42:28 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-07 15:01:14 +0100
commit20e5506baf3fd651e245bc970d8c11a734ee1b8a (patch)
tree429cae426bb8b1cb38b261d485e0ebecc093e439 /fs/btrfs/tests
parent28f0779a3fd6ef015303780f0b9a92b24728bc4b (diff)
downloadlinux-20e5506baf3fd651e245bc970d8c11a734ee1b8a.tar.gz
linux-20e5506baf3fd651e245bc970d8c11a734ee1b8a.tar.bz2
linux-20e5506baf3fd651e245bc970d8c11a734ee1b8a.zip
btrfs: constify remaining structs with function pointers
* struct extent_io_ops * struct btrfs_free_space_op Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
-rw-r--r--fs/btrfs/tests/free-space-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tests/free-space-tests.c b/fs/btrfs/tests/free-space-tests.c
index 46c2f292ea94..69a11e63d668 100644
--- a/fs/btrfs/tests/free-space-tests.c
+++ b/fs/btrfs/tests/free-space-tests.c
@@ -445,11 +445,11 @@ test_steal_space_from_bitmap_to_extent(struct btrfs_block_group_cache *cache)
int ret;
u64 offset;
u64 max_extent_size;
- struct btrfs_free_space_op test_free_space_ops = {
+ const struct btrfs_free_space_op test_free_space_ops = {
.recalc_thresholds = cache->free_space_ctl->op->recalc_thresholds,
.use_bitmap = test_use_bitmap,
};
- struct btrfs_free_space_op *orig_free_space_ops;
+ const struct btrfs_free_space_op *orig_free_space_ops;
test_msg("Running space stealing from bitmap to extent\n");