Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp107373pxv; Wed, 14 Jul 2021 23:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrR78Auas2NKXHJOGBPjz9d3Z/uAHmLfPHfBjad3Zbw8w/1EeZC6PMLBMoaruQILmceuec X-Received: by 2002:aa7:c1ca:: with SMTP id d10mr4471353edp.107.1626332283649; Wed, 14 Jul 2021 23:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626332283; cv=none; d=google.com; s=arc-20160816; b=S3lAQQrkkjiIbxlL54c5FFm4FCVpyainGBGM3/vdz4ZgwmPCKbXY++d+ufM440pbPe eNRRSrFiVMLOrIzB1JMDZwGWhBpw7hvPjVHhdH5ruoh30HZJFvm2QArIBpALjX/1t2Lk mtVouMqSJ4Be/p9zabxpvVBA/wiXeXHOpeERvzcD0t9PLgUIJV/LjpTns9E73u/w1LJw OKBXFyXCsq2pBU080ekBNjjkaxHq5Vo3uNOh9Crv/O/E/V4dd/loieTyUAy4rXJOfmag kV9nHZCZPPUIndalxPuTUtMFWw5bz7fkXIFWxRf4HX/0JWYiJwWcWD0/RvBtjY3kHPMI y1Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DiCvdub2NyAxi5vdcBAAoKILUi2SsTMXk5wTzRXz3nU=; b=C7xpDjmyOI77a2RVX6/5QEraijRuCKrj02Gqj4Q0IEDdnrWCl6rj77Fa6AqwzJRynt wHdvGmzklSw0cRbm7rwpOVF1iCyucJF7UZ658HXbrICstqMb0EYApkxVjL9haPfhsLBC C8sMZVDWDA9dbhKObay/MvC4H/vJ5Q8fRRrt249nf6V1XktMqapKPOD9+2uJW+RaA6BM FEbnG5BFlwC4VPQ3ZZaiiyY1Cu1MoSUBhKGOuMpZR7PfYbRy0JdGdg2HNF3C6mMI5kpI aFIhSN7YjX96DT8pq9woM3ydZoRXB7avcZXj3C7ZLRQfC7aTrn0dChYkwHR+hhp+E8L+ FxUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m9own620; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si6286396ejx.562.2021.07.14.23.57.40; Wed, 14 Jul 2021 23:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m9own620; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238424AbhGOEzu (ORCPT + 99 others); Thu, 15 Jul 2021 00:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbhGOEzu (ORCPT ); Thu, 15 Jul 2021 00:55:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22ED2C06175F; Wed, 14 Jul 2021 21:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=DiCvdub2NyAxi5vdcBAAoKILUi2SsTMXk5wTzRXz3nU=; b=m9own6200ikSVQdzgLeJVvFbXk KLK5jjJLwmy//gHZAkUqKCRKAlllGQYXZ/mUuuaalkPV6wyi213cdVmFWEEvnWi7jeBz5FceaqnKu zYZWQsCeeiQcmaCS3zSkXH7A4kUFTJJrS1LJ3gXUTDCsdLg1h1ogtjStJLts3VXfcZLwU8hNSK3pR N2HdugKThAMJifZIdWxCuiSMV3pwoMWX2KLBCUnY14r/XTFzAajSnlVll8cbQregxqzEGHBf8yqKM zH4ygOVU55t924HiuKrSK1AxkjcLICLQ0+n/cV9jHsd7R9Fcsgk6MkAh7rENjwz+WPpGh09RgBcaD hRuaIIMQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3tLa-002yxB-Ff; Thu, 15 Jul 2021 04:51:50 +0000 From: "Matthew Wilcox (Oracle)" To: linux-kernel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v14 095/138] iomap: Convert iomap_releasepage to use a folio Date: Thu, 15 Jul 2021 04:36:21 +0100 Message-Id: <20210715033704.692967-96-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210715033704.692967-1-willy@infradead.org> References: <20210715033704.692967-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an address_space operation, so its argument must remain as a struct page, but we can use a folio internally. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index 251ec45426aa..abb065b50e38 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -458,15 +458,15 @@ iomap_releasepage(struct page *page, gfp_t gfp_mask) { struct folio *folio = page_folio(page); - trace_iomap_releasepage(page->mapping->host, page_offset(page), - PAGE_SIZE); + trace_iomap_releasepage(folio->mapping->host, folio_pos(folio), + folio_size(folio)); /* * mm accommodates an old ext3 case where clean pages might not have had * the dirty bit cleared. Thus, it can send actual dirty pages to * ->releasepage() via shrink_active_list(), skip those here. */ - if (PageDirty(page) || PageWriteback(page)) + if (folio_test_dirty(folio) || folio_test_writeback(folio)) return 0; iomap_page_release(folio); return 1; -- 2.30.2