]> git.baikalelectronics.ru Git - kernel.git/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)
committerChris Mason <clm@fb.com>
Fri, 21 Nov 2014 01:20:04 +0000 (17:20 -0800)
commitcaf5570effb3bad55fc95ade4dd584905f099396
tree8cf20fe74c74e70409d4e60c80b65aab1c7f97b5
parentee47808b88696d4f480ff986cc3d47c5c8946c10
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>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c