From patchwork Fri Oct 14 18:12:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 9485835 X-Mozilla-Keys: nonjunk Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sandeen.net X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 X-Spam-HP: BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5,RP_MATCHES_RCVD=-0.1,UNPARSEABLE_RELAY=0.001 X-Original-To: sandeen@sandeen.net Delivered-To: sandeen@sandeen.net Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by sandeen.net (Postfix) with ESMTP id AFFBC50D8CE for ; Fri, 14 Oct 2016 13:12:14 -0500 (CDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752883AbcJNSNF (ORCPT ); Fri, 14 Oct 2016 14:13:05 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:40016 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752753AbcJNSNE (ORCPT ); Fri, 14 Oct 2016 14:13:04 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u9EID0Vq031601 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Oct 2016 18:13:01 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.14.4) with ESMTP id u9EID0wM017461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Oct 2016 18:13:00 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u9EICwGh008990; Fri, 14 Oct 2016 18:12:59 GMT Received: from localhost (/10.145.178.207) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 Oct 2016 11:12:57 -0700 Subject: [PATCH 1/3] xfs: set the refcount btree cowflag when setting up cow From: "Darrick J. Wong" To: david@fromorbit.com, eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Fri, 14 Oct 2016 11:12:56 -0700 Message-ID: <147646877615.19627.12845265308407861169.stgit@birch.djwong.org> In-Reply-To: <147646876990.19627.5046740854955682441.stgit@birch.djwong.org> References: <147646876990.19627.5046740854955682441.stgit@birch.djwong.org> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org When we're setting up a fake cow extent in the refcountbt to test cleanup of fake cow extents, set the cowflag in the record field to reflect our new disk format of storing the staging extents in the right side of the tree. Signed-off-by: Darrick J. Wong --- tests/xfs/307 | 1 + tests/xfs/308 | 1 + 2 files changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tests/xfs/307 b/tests/xfs/307 index 869f5cc..2a99459 100755 --- a/tests/xfs/307 +++ b/tests/xfs/307 @@ -145,6 +145,7 @@ _set_agf_data numrecs 1 -c 'addr refcntroot' _set_agf_data "recs[1].startblock" $debris_bno -c 'addr refcntroot' _set_agf_data "recs[1].blockcount" $debris_len -c 'addr refcntroot' _set_agf_data "recs[1].refcount" 1 -c 'addr refcntroot' +_set_agf_data "recs[1].cowflag" 1 -c 'addr refcntroot' if [ $is_rmap -gt 0 ]; then rmap_nr=$((rmap_nr + 1)) diff --git a/tests/xfs/308 b/tests/xfs/308 index 8f8f380..5bfa432 100755 --- a/tests/xfs/308 +++ b/tests/xfs/308 @@ -145,6 +145,7 @@ _set_agf_data numrecs 1 -c 'addr refcntroot' _set_agf_data "recs[1].startblock" $debris_bno -c 'addr refcntroot' _set_agf_data "recs[1].blockcount" $debris_len -c 'addr refcntroot' _set_agf_data "recs[1].refcount" 1 -c 'addr refcntroot' +_set_agf_data "recs[1].cowflag" 1 -c 'addr refcntroot' if [ $is_rmap -gt 0 ]; then rmap_nr=$((rmap_nr + 1))