From: Josef Bacik Date: Fri, 31 Oct 2014 13:49:34 +0000 (-0400) Subject: Btrfs: move read only block groups onto their own list V2 X-Git-Tag: omap-for-v3.19/fixes-rc1~111^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633c0aad4c0243a506a3e8590551085ad78af82d;p=pandora-kernel.git 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 Reviewed-by: Liu Bo Signed-off-by: Chris Mason --- Reading git-diff-tree failed