btrfs-progs: make free space checker work on non-4k sectorsize filesystems
authorDavid Sterba <dsterba@suse.cz>
Wed, 28 May 2014 09:25:24 +0000 (11:25 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 08:38:31 +0000 (10:38 +0200)
commit2c0e02a568c7db99922e9080407f8fc22d1991bd
treefdb0acbbc03262f500d82814584e6af2c0703132
parent6c9caa4dd60b94e95ac3c8e3e1bcec228fc0b435
btrfs-progs: make free space checker work on non-4k sectorsize filesystems

The value of sector for space cache was hardcoded to 4k, and used to
calculate bitmap sizes.  In kernel, the BITS_PER_BITMAP is derived from
PAGE_CACHE_SIZE which is not available for userspace, that can also deal
with filesystem of varying sectorsize.

Signed-off-by: David Sterba <dsterba@suse.cz>
free-space-cache.c
free-space-cache.h