btrfs tests: replace whole ops structure for free space tests
authorDavid Sterba <dsterba@suse.com>
Thu, 19 Nov 2015 10:42:24 +0000 (11:42 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 14:01:14 +0000 (15:01 +0100)
commit28f0779a3fd6ef015303780f0b9a92b24728bc4b
tree456ff448bdefa0d7bc31cf460221b8858131ab30
parent100d57025cce6bf568a10660c0d884bcc64c580e
btrfs tests: replace whole ops structure for free space tests

Preparatory work for making btrfs_free_space_op constant. In
test_steal_space_from_bitmap_to_extent, we substitute use_bitmap with
own version thus preventing constification. We can rework it so we
replace the whole structure with the correct function pointers.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/free-space-tests.c