From patchwork Wed May 9 07:48:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10388413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 81154602C2 for ; Wed, 9 May 2018 07:49:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 729F828E05 for ; Wed, 9 May 2018 07:49:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 677BA28E2B; Wed, 9 May 2018 07:49:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1D9128E08 for ; Wed, 9 May 2018 07:49:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6A82B6B035D; Wed, 9 May 2018 03:49:41 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 606CC6B035F; Wed, 9 May 2018 03:49:41 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 47CB66B0360; Wed, 9 May 2018 03:49:41 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 03AB56B035D for ; Wed, 9 May 2018 03:49:41 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id r9-v6so15320970pgp.12 for ; Wed, 09 May 2018 00:49:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=t6VBFGsMYQMOPE7hNuY8nClDJA5gpwZF8loR2Q1MmFs=; b=QFVFqT7owFVDuW/3s/UX5gNI1ZGgr2K/TgHHpvDceJfbdM3LDowxQp0kSTprC8bTnJ H3iwaD0g3n7P5/bKty3ruybI7/XG8KGJhQjz2AzOUI3TXOVYKTkkcG2JyMkwhCzjAqu2 ZkQ/aIXe8+xPWebdwrzM2Kwi1rH446UqqY+JBhGtFR2c7GDMv/2D6+NzA0b0Vvy2Qtj2 VEcXvXdEslYWvdEU349xqfqBFitWwVkFBipQ1yHRSWLdyvwpkYowei7DliT1wha2g9Rj pOGaBDs4qmw6HWYlvy08V02981HI8Cqk0Lq8FWlC+Ww4CRrYRJAd1oLLl6o/Pec2YM/p +yMw== X-Gm-Message-State: ALQs6tAIuNiNfuWOQmHVCBS0j6d2jJA+GO8Jw9RA+j4Ns/4V+j+N8qrG hxaWokXHf+Us2XltrHTpsbyE7LWa81WH/PGsSpRDj8ptNbkOLS33tDhRVyEuCsIwNF7XEwVI7+7 A5q+sn/kiGVK4tB+xDj9gvKMtEh4zdBVKXJ2shYJ8d3Gh7w22Pf8jeYawwudO9FA= X-Received: by 2002:a65:4907:: with SMTP id p7-v6mr35104631pgs.139.1525852180706; Wed, 09 May 2018 00:49:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkW+pd9+e0bbMtT2wEwVUVmqOIRL4Zx6BosKe+dncLQddlkYGVx5ceAZs4KcWS7Brmz45A X-Received: by 2002:a65:4907:: with SMTP id p7-v6mr35104607pgs.139.1525852179938; Wed, 09 May 2018 00:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525852179; cv=none; d=google.com; s=arc-20160816; b=bbfavubqxcs1cHIDA/j/UHaUVIpvJtRWpJbGChaJZ+tV7VOS24t/LfMxIh89TSWbtK BZxA3g5C4MrDvpAIV88PiOfAbAauoigp4RGHnLIxY3QdQWfaA6EXQuR3AnQHCtiThvg+ zDfoSgVsi5v7Ohuk+zwwmJUeSXU/Bo8fWgv+UxaBkeEldhE2fQlpeatC+ldnH7s0sgBc KOL4TVeY5EkcHHibDIuEI4nLKgeRKaUsrsDmI0+OJrKav+7qylsh3aUHquvXHTE5BN94 avWNpaUDG1wOIO0Yzn/g1iWB/xs46gUJSedeBPie6nBove6UlZXocptSJJMPZgg34EDA aRJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=t6VBFGsMYQMOPE7hNuY8nClDJA5gpwZF8loR2Q1MmFs=; b=irljtakm01Ff6ddRNX0vReUHdz/mhNuh0JTAWcvcxpcebOZimIv3i2eGLO7jE2xgRc ClY3xpK0T7ICjUDGCW1rF3I02R+p8Tqn5xbdMDt6B3g/s+RJ+f7V1x8uGSwhyipphatT c7ZktbegbOefmTmqVrXZvkb10IwpOn9Gp38itOujLYKwZp8KXgCWtS9q6hYcacu29jve QJUwp7y2NtZLDZyAyaUzOVodE7iiwFkZ0jnxoCl1+VwZs8pD7PZQ+WI2y/w6Mojwgrlb eAn3otYs5kuuv00iPwbEBAj447+/79zZGUtHS+igXjV9VHhTbSryhg/pWuR9c8MUhUFf c9kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=mFyybhdU; spf=pass (google.com: best guess record for domain of batv+e0efdd19ce80d487e3da+5372+infradead.org+hch@bombadil.srs.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=BATV+e0efdd19ce80d487e3da+5372+infradead.org+hch@bombadil.srs.infradead.org Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id e1-v6si25564861pld.69.2018.05.09.00.49.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 00:49:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of batv+e0efdd19ce80d487e3da+5372+infradead.org+hch@bombadil.srs.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=mFyybhdU; spf=pass (google.com: best guess record for domain of batv+e0efdd19ce80d487e3da+5372+infradead.org+hch@bombadil.srs.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=BATV+e0efdd19ce80d487e3da+5372+infradead.org+hch@bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=t6VBFGsMYQMOPE7hNuY8nClDJA5gpwZF8loR2Q1MmFs=; b=mFyybhdUQ70lw/23IKSMwW/Nh dalSM9LOTeRPeCD0QjKW2sV2/t3kbn47xmFfT82bSXT03/T4tw24ZPqVqkOP1Oa0vFO/QRlf64lUl S6IYnrsXnLWmO87pXu9tKwOMc5GYntrMS1UTHnlsViDaUOC/XIozYoGxQat5rpYO9oOCkxvUK0zb4 07AHNvBH+4Qee50bZeYWz+sdReWfjP7dbnYf9oRWqz8g7YG5pBw9FIFk2nvOQTaiQdxmX/RFX8UJy +BiaeuEGDf4YZECs2lHxyO+dhJXVXWNH4jLMkr11pMGNkilzF+OMy0hiw6/r42swMBjVaFURqVozO UP2tIzuuQ==; Received: from 213-225-15-246.nat.highway.a1.net ([213.225.15.246] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGJr0-0001fw-MH; Wed, 09 May 2018 07:49:39 +0000 From: Christoph Hellwig To: linux-xfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 18/33] xfs: remove the now unused XFS_BMAPI_IGSTATE flag Date: Wed, 9 May 2018 09:48:15 +0200 Message-Id: <20180509074830.16196-19-hch@lst.de> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509074830.16196-1-hch@lst.de> References: <20180509074830.16196-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Christoph Hellwig --- fs/xfs/libxfs/xfs_bmap.c | 6 ++---- fs/xfs/libxfs/xfs_bmap.h | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 6a7c2f03ea11..30a2242a1eba 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -3785,8 +3785,7 @@ xfs_bmapi_update_map( mval[-1].br_startblock != HOLESTARTBLOCK && mval->br_startblock == mval[-1].br_startblock + mval[-1].br_blockcount && - ((flags & XFS_BMAPI_IGSTATE) || - mval[-1].br_state == mval->br_state)) { + mval[-1].br_state == mval->br_state) { ASSERT(mval->br_startoff == mval[-1].br_startoff + mval[-1].br_blockcount); mval[-1].br_blockcount += mval->br_blockcount; @@ -3831,7 +3830,7 @@ xfs_bmapi_read( ASSERT(*nmap >= 1); ASSERT(!(flags & ~(XFS_BMAPI_ATTRFORK|XFS_BMAPI_ENTIRE| - XFS_BMAPI_IGSTATE|XFS_BMAPI_COWFORK))); + XFS_BMAPI_COWFORK))); ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED|XFS_ILOCK_EXCL)); if (unlikely(XFS_TEST_ERROR( @@ -4275,7 +4274,6 @@ xfs_bmapi_write( ASSERT(*nmap >= 1); ASSERT(*nmap <= XFS_BMAP_MAX_NMAP); - ASSERT(!(flags & XFS_BMAPI_IGSTATE)); ASSERT(tp != NULL || (flags & (XFS_BMAPI_CONVERT | XFS_BMAPI_COWFORK)) == (XFS_BMAPI_CONVERT | XFS_BMAPI_COWFORK)); diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h index 2b766b37096d..2c6da709a521 100644 --- a/fs/xfs/libxfs/xfs_bmap.h +++ b/fs/xfs/libxfs/xfs_bmap.h @@ -79,8 +79,6 @@ struct xfs_extent_free_item #define XFS_BMAPI_METADATA 0x002 /* mapping metadata not user data */ #define XFS_BMAPI_ATTRFORK 0x004 /* use attribute fork not data */ #define XFS_BMAPI_PREALLOC 0x008 /* preallocation op: unwritten space */ -#define XFS_BMAPI_IGSTATE 0x010 /* Ignore state - */ - /* combine contig. space */ #define XFS_BMAPI_CONTIG 0x020 /* must allocate only one extent */ /* * unwritten extent conversion - this needs write cache flushing and no additional @@ -121,7 +119,6 @@ struct xfs_extent_free_item { XFS_BMAPI_METADATA, "METADATA" }, \ { XFS_BMAPI_ATTRFORK, "ATTRFORK" }, \ { XFS_BMAPI_PREALLOC, "PREALLOC" }, \ - { XFS_BMAPI_IGSTATE, "IGSTATE" }, \ { XFS_BMAPI_CONTIG, "CONTIG" }, \ { XFS_BMAPI_CONVERT, "CONVERT" }, \ { XFS_BMAPI_ZERO, "ZERO" }, \