]> git.hungrycats.org Git - linux/commit
Btrfs: move read only block groups onto their own list V2
authorJosef Bacik <jbacik@fb.com>
Fri, 31 Oct 2014 13:49:34 +0000 (09:49 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:17:19 +0000 (08:17 -0500)
commitc7230ce961db7c6e29050334db6d903c0de1981b
treefd080d24ede8333735fc7b7ab36c631057b553c4
parent2d5f4a4591c83c533c1d734a3fcdfba8620f066c
Btrfs: move read only block groups onto their own list V2

Our gluster boxes were spending lots of time in statfs because our fs'es are
huge.  The problem is statfs loops through all of the block groups looking for
read only block groups, and when you have several terabytes worth of data that
ends up being a lot of block groups.  Move the read only block groups onto a
read only list and only proces that list in
btrfs_account_ro_block_groups_free_space to reduce the amount of churn.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 633c0aad4c0243a506a3e8590551085ad78af82d)
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c