Message ID | 20180509074830.16196-13-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 5EF3E60170 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 07:49:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52A3228E08 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 07:49:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 477C228E65; Wed, 9 May 2018 07:49:24 +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 DD73C28E08 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 07:49:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D11306B0351; Wed, 9 May 2018 03:49:18 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CBF626B0353; Wed, 9 May 2018 03:49:18 -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 A567A6B0354; Wed, 9 May 2018 03:49:18 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id 5430A6B0353 for <linux-mm@kvack.org>; Wed, 9 May 2018 03:49:18 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id z5so14239146pfz.6 for <linux-mm@kvack.org>; Wed, 09 May 2018 00:49:18 -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=9VsJjqytjYKlugoQ2XiuK8pjghdwfKcFOADeze+C7dM=; b=l6sDL++kR/WV2hNHZi9yCvLRooSeH/9xf/G9DCNsystLhZx+xcK7kqB10luc1lCMf2 cKLih5mtyDRtqE2K1e/KGjCJRuK3EhE1kJgFcJfG5c1Q78+zKx+iyi//h81ZZbWSsK9r yvNLQwuL0iuNKDx9Df26YBt6dqBNWRsstzvLc5ZtEFoiC53PCnPZT5fO1qAz/3hoKl2O 2eUPdAO0CY7+HxMaQ6Fc5Vsf4CGSQk0Nz2qvSwJiCU6RW2Yw3sGF65uIFafa6Vt/wE3+ 00ao7woFSyytjE3rtBaDeO0ZsEWSMHn0IrpZjZaVYDoDKPnvjbVrpohMj1iTXCWX+0P0 8uwA== X-Gm-Message-State: ALQs6tASgibmn6Bk2tMnL7tw0/EN30EM+Vgnw4rwrCCrdNUOzmJepWi2 a2BzH124oEnd0lVARtiJaSCUCX96I6v/GdgaQ7cEOZ281wavJ27rJKHxclZG1jSIFo+mvBpmtOL 2GbLjJ5Z5hXx+GHJ9WHdgc4obe2d7Fi1S1WNp21zcwesz22sYNlm2n9X5uf2LywQ= X-Received: by 10.98.58.148 with SMTP id v20mr30347677pfj.90.1525852158032; Wed, 09 May 2018 00:49:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrQZJpAF3nj56jKr38Trn43Uw8+m3nIhxFCq2OnkiZz2dwB6H6fO3LIhTPBPwEyiKbuGKeZ X-Received: by 10.98.58.148 with SMTP id v20mr30347653pfj.90.1525852157245; Wed, 09 May 2018 00:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525852157; cv=none; d=google.com; s=arc-20160816; b=NjJj1ic7YGiafY14D7GggN10Ms4JvAd+M0iAFHVIgKb86SwNttcqAeCV9QWfiPsOOX H9D9mrV+M5DivJT5NHu/5dzHkFIE69IyqBSVHA4Jo1wCGKBo7thSd3qsQOqZReZaKGU+ nMjVJR2shZOZOknunJpCKuviYGcKe7vuo+vrssgV/P3BLWu8oRn6SkIbY/z0pdMX8Wgv ZdPwvULwKSG90i5onlR5DlpkQQUfZi1BqtC2Z2nmlJcq7Uc+aG5IPXX3zC1QhLJOKTB5 BRcEaPs3vefu7KDyK/CRKOPzDyewkpL7jYdVcoVCdleoxru/3DqDv9Q7X/6Oool1uJmx LT6Q== 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=9VsJjqytjYKlugoQ2XiuK8pjghdwfKcFOADeze+C7dM=; b=e9G6Z8V/yMJLoCAMnLBD+8+6WTZxkvAB8CHsHA/HtDdmwp+p9TRNp1xxu0ffmqyVwi yUt0tUq2uA0HZ6Br7WpyiLXbj7ncrU5rehJIasUdcMdOLawZd+jp7/JjcNoobAGLSfRC MDUXO5u1pbuGADMLxyzuOnQMe7zLIZIilWyp1vK3u1jpCNGoifb+K14+VVsaSW+PIybN TUF5tbLcO8eTZh6hf395z17aIN3sugZP5KACfCp+X3DlEQLSvBLm1oDU/agIHkd9jyns yFkBedlMdOZ2OknVvbLdxA+PPgLu8FXt89BGzeUjB0UJmHaJRdA3eKzUDhlCAPYQoyW3 hxYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20170209 header.b=g0JcvPrp; 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 u13-v6si7657885pgr.593.2018.05.09.00.49.17 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 00:49:17 -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=g0JcvPrp; 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=9VsJjqytjYKlugoQ2XiuK8pjghdwfKcFOADeze+C7dM=; b=g0JcvPrprE+Yev4RMFepZ1MF8 KZnDd+osgr4gTd0x3tys2B3RgznQcbGeA+7aZACVSM/f/28ZcfCDicOLNBtmVr/aJfvAcrE744GGs bJjMMfwdn0PCbRFaSO6OmkdsMivqDNydkLmAMpkkG+t3BRdWIxt9xZu4Xd5/oTB/2FPLejyL3juVt 1povBNzWjFnUP40nocoXFf0VYBEjI8bK2+458DYRYMGuBBazzbCXHqDWdcqfmTeW5pG+c6MNwcqEc IiUOG7jZQxsQlPoXirKTTaF+lG16F6YNEg5GHgQudov9tD1+zP+HCu/yGbb/y7LAKKXGMOp98YQsq l1yc/4r0Q==; 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 1fGJqe-0001X8-55; Wed, 09 May 2018 07:49:16 +0000 From: Christoph Hellwig <hch@lst.de> To: linux-xfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 12/33] xfs: use iomap_bmap Date: Wed, 9 May 2018 09:48:09 +0200 Message-Id: <20180509074830.16196-13-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 <hch@infradead.org> 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 0ab824f574ed..8b06be0a80da 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -1378,10 +1378,9 @@ xfs_vm_bmap( struct address_space *mapping, sector_t block) { - struct inode *inode = (struct inode *)mapping->host; - struct xfs_inode *ip = XFS_I(inode); + struct xfs_inode *ip = XFS_I(mapping->host); - trace_xfs_vm_bmap(XFS_I(inode)); + trace_xfs_vm_bmap(ip); /* * The swap code (ab-)uses ->bmap to get a block mapping and then @@ -1394,9 +1393,7 @@ xfs_vm_bmap( */ if (xfs_is_reflink_inode(ip) || XFS_IS_REALTIME_INODE(ip)) return 0; - - filemap_write_and_wait(mapping); - return generic_block_bmap(mapping, block, xfs_get_blocks); + return iomap_bmap(mapping, block, &xfs_iomap_ops); } STATIC int
Switch to the iomap based bmap implementation to get rid of one of the last users of xfs_get_blocks. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/xfs/xfs_aops.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)