Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1451559pxv; Fri, 16 Jul 2021 09:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxdHdwHu9JxdxremcP9/leVVl9F9w0VlAc5LzhAA5LdOnX8EyWk5H0DGEP4Jw/3BM3Xq7F X-Received: by 2002:a17:907:75d2:: with SMTP id jl18mr12464665ejc.238.1626453414771; Fri, 16 Jul 2021 09:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626453414; cv=none; d=google.com; s=arc-20160816; b=dNhI0yoWyY9/X6DCDunQb1iXdCAgIppPyyhHgJyxJVxfqZKs8hhKjh3nEKd+61EQgu FTvQEWJW4KCTeG0IayMbGJP4lyDYV1/t5zuPF9EyZDFY1ixOnKlgHsL3wnXOOz0oPn+J ED5cGb7Pz+QoVkNMG7hBdW2Ss4zLcfo703PHN7oWGi/DvJRb4YxOVwjvgjl7oybEyzf7 Vpk3Nyh9VIQgfM7VVhWYwPjFDDEcuW7m0cu1FqGbxTe8OPm3JbIh1KDgAChxn+/DULMh FXp/piKJ0j8Z/c3QONsaJ7eSTbdyONTTZ8kpDkyv7GdRODyTHgJY8YtZmhmwWbnpum+S Bwcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s+TxSU9fWKoqGGvxsaxCap4PCZke/leQc4/SzNLqMc8=; b=QaxTUJjsx4Tvd4vgclKM1WWa+3TcDj65jd2+Gy2qLXz1GmeTZJ5tyYY+TJ/F8b5haS nmDse+Sn7krX4A8/PeUG1GAqIB8QVXYZtAmZijL2JLzHbOtxWdKS5zhkRFbnGGkaIHUv 8X0GaIHcXOEW7NDsRxVMIjRVyriWDtJVGDmhivYz+fw6LimcE34OhS8ucypTPY3ozJ1O 6vTEV1ejzYFImP8uQSCyZjWtrG0ukP/wOHuexwmmX/ZZ6sWWFPG7bNVtIPmH2Zg89xAI 5xOWhNvMIHsYaWWojRl2aaCYzcfb3A/xsfeM298z1oqrLjw5jNv6G7fGK4tmCrTAsJP+ GHTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIx1xU9p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj3si8233995edb.379.2021.07.16.09.36.30; Fri, 16 Jul 2021 09:36:54 -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=@kernel.org header.s=k20201202 header.b=AIx1xU9p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbhGPQhP (ORCPT + 99 others); Fri, 16 Jul 2021 12:37:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhGPQhO (ORCPT ); Fri, 16 Jul 2021 12:37:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 874DF613CF; Fri, 16 Jul 2021 16:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626453259; bh=4nBTyZyJngRe55CU3IagbmHB+MF75H0iqAAq05mV6C8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AIx1xU9prVw/X9JWCwDj1szGKyIgRTI8wAeW+GPU4GzV10VCDvt0JXGwfv6TVXFIA Gv2G+yjFMC1xO4PAMJGbb1o41q5jrKWCuIj/nlttuLPd5fBJWUa3fyIBLUg1SH9b4D aS4wh5rOadXU8gi7sX395ZVH4gXJLB6uo7fGFOfN2xxts3gBRjBjqdL6JEJ0c8fbFB vJNJf1iThBVO9I7lh0jML8F/LfFyC9VPrrDUcTtKFCKiBZJk1ND0oE78A/IGDYM5xE 8dbiUDoJljPIvLbDBrxKpbAQAUNppwN41KO73g/kQFVZvnExcB8Gr/JiVoUYRCwqPI /GufzInlxy+Vg== Date: Fri, 16 Jul 2021 09:34:18 -0700 From: "Darrick J. Wong" To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v14 097/138] iomap: Pass the iomap_page into iomap_set_range_uptodate Message-ID: <20210716163418.GZ22357@magnolia> References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-98-willy@infradead.org> <20210715212105.GH22357@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 04:21:25AM +0100, Matthew Wilcox wrote: > On Thu, Jul 15, 2021 at 02:21:05PM -0700, Darrick J. Wong wrote: > > On Thu, Jul 15, 2021 at 04:36:23AM +0100, Matthew Wilcox (Oracle) wrote: > > > All but one caller already has the iomap_page, and we can avoid getting > > > it again. > > > > > > Signed-off-by: Matthew Wilcox (Oracle) > > > > Took me a while to distinguish iomap_iop_set_range_uptodate and > > iomap_set_range_uptodate, but yes, this looks pretty simple. > > Not my favourite naming, but it's a preexisting condition ;-) > > Honestly I'd like to rename iomap to blkmap or something. > And iomap_page is now hilariously badly named. But that's kind > of tangential to everything else here. I guess we only use 'blkmap' in a few places in the kernel, and nobody's going to confuse us with UFS. Hmm, what kind of new name? struct iomap_buffer_head *ibh; /* NO */ struct iomap_folio_state *ifs; struct iomap_state *is; /* shorter, but what is 'state'? */ struct iomap_blkmap *ibm; /* lolz */ I think iomap_blkmap sounds fine, since we're probably going to end up exporting it (and therefore need a clear namespace) as soon as one of the filesystems that uses page->private to stash per-page info wants to use iomap for buffered io. --D