OSDN Git Service

Btrfs: add fragment=* debug mount option
authorJosef Bacik <jbacik@fb.com>
Wed, 23 Sep 2015 18:54:14 +0000 (14:54 -0400)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:51:43 +0000 (18:51 -0700)
commitd0bd456074dca089579818312da7cbe726ad2ff9
tree6dcb3498d7b964a19562dccf8322483359ede3ef
parentd9ee522ba3ab51b7e3c6dfcf3743216371bc810f
Btrfs: add fragment=* debug mount option

In tracking down these weird bitmap problems it was helpful to artificially
create an extremely fragmented file system.  These mount options let us either
fragment data or metadata or both.  With these options I could reproduce all
sorts of weird latencies and hangs that occur under extreme fragmentation and
get them fixed.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/super.c
fs/btrfs/tests/free-space-tests.c