From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [59.151.112.132] ([59.151.112.132]:15337 "EHLO heian.cn.fujitsu.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754060AbbJHLCL (ORCPT ); Thu, 8 Oct 2015 07:02:11 -0400 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t98B17T5030398 for ; Thu, 8 Oct 2015 19:01:07 +0800 From: Zhao Lei To: CC: Zhao Lei Subject: [PATCH v4 0/3] btrfs: Fix lost-data-profile caused by auto removing bg and balance bg Date: Thu, 8 Oct 2015 18:59:52 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-btrfs-owner@vger.kernel.org List-ID: Changelog v3->v4: 1: Avoid down_read() in spin_lock context. Noticed-by: Chris Mason Changelog v2->v3: 1: Use list_is_singular() instead of block_group->list.next == block_group->list.prev Suggested-by: Jeff Mahoney 2: Add Reviewed-by: Filipe Manana Changelog v1->v2: 1: Put code of checking block_group->list into semaphore of space_info->groups_sem. Noticed-by: Filipe Manana 2: Update patch description of "Fix" field 3: Use BTRFS_BLOCK_GROUP_DATA for btrfs_force_chunk_alloc instead of 1 4: Only reserve chunk when doing balance on data chunk. All suggested-by: Filipe Manana Zhao Lei (3): btrfs: Fix lost-data-profile caused by auto removing bg btrfs: Fix lost-data-profile caused by balance bg btrfs: Use fs_info directly in btrfs_delete_unused_bgs fs/btrfs/extent-tree.c | 11 +++++++---- fs/btrfs/volumes.c | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) -- 1.8.5.1