From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35903C48BE5 for ; Tue, 15 Jun 2021 17:20:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id ABFB56140B for ; Tue, 15 Jun 2021 17:20:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABFB56140B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4C45C6B0036; Tue, 15 Jun 2021 13:20:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 474596B006C; Tue, 15 Jun 2021 13:20:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 314DA6B006E; Tue, 15 Jun 2021 13:20:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0038.hostedemail.com [216.40.44.38]) by kanga.kvack.org (Postfix) with ESMTP id F0D136B0036 for ; Tue, 15 Jun 2021 13:20:03 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 96ED8DB24 for ; Tue, 15 Jun 2021 17:20:03 +0000 (UTC) X-FDA: 78256621086.31.76DD310 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf06.hostedemail.com (Postfix) with ESMTP id 16E94C00CBF8 for ; Tue, 15 Jun 2021 17:19:53 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id C3D30610A3; Tue, 15 Jun 2021 17:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623777602; bh=xfpYdTiFtO6fupidTDpKVikPPyV2ma0JS7KlyV5pg6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CIeWhp6tD03WqalHtlwknpiyM2Z5gPTxDisxzhoCPCztpaexvsR+KnJhA/2OzpLp6 XFtHaQbtxPFVxrwIkBpFUDS8YH6QLJ9kt6Q6/9RjyvZsya9B91S605Vijojg1l21Zl XhySo+nF+3l6PUh5f3IbllxwDQeCXUhSixPOa/7E= Date: Tue, 15 Jun 2021 19:19:59 +0200 From: Greg Kroah-Hartman To: "Matthew Wilcox (Oracle)" Cc: Christoph Hellwig , Andrew Morton , Jan Kara , Al Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] iomap: Use __set_page_dirty_nobuffers Message-ID: References: <20210615162342.1669332-1-willy@infradead.org> <20210615162342.1669332-4-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210615162342.1669332-4-willy@infradead.org> Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=CIeWhp6t; spf=pass (imf06.hostedemail.com: domain of gregkh@linuxfoundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 16E94C00CBF8 X-Stat-Signature: kpag38s8stuteq51dp1ce4fp9wk87wed X-HE-Tag: 1623777593-10502 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: On Tue, Jun 15, 2021 at 05:23:39PM +0100, Matthew Wilcox (Oracle) wrote: > The only difference between iomap_set_page_dirty() and > __set_page_dirty_nobuffers() is that the latter includes a debugging > check that a !Uptodate page has private data. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/gfs2/aops.c | 2 +- > fs/iomap/buffered-io.c | 27 +-------------------------- > fs/xfs/xfs_aops.c | 2 +- > fs/zonefs/super.c | 2 +- > include/linux/iomap.h | 1 - > 5 files changed, 4 insertions(+), 30 deletions(-) > > diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c > index 50dd1771d00c..746b78c3a91d 100644 > --- a/fs/gfs2/aops.c > +++ b/fs/gfs2/aops.c > @@ -784,7 +784,7 @@ static const struct address_space_operations gfs2_aops = { > .writepages = gfs2_writepages, > .readpage = gfs2_readpage, > .readahead = gfs2_readahead, > - .set_page_dirty = iomap_set_page_dirty, > + .set_page_dirty = __set_page_dirty_nobuffers, Using __ functions in structures in different modules feels odd to me. Why not just have iomap_set_page_dirty be a #define to this function now if you want to do this? Or take the __ off of the function name? Anyway, logic here is fine, but feels odd. greg k-h