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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ABD1C7EE43 for ; Tue, 13 Jun 2023 05:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239921AbjFMFGA (ORCPT ); Tue, 13 Jun 2023 01:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239924AbjFMFFy (ORCPT ); Tue, 13 Jun 2023 01:05:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB3E18E; Mon, 12 Jun 2023 22:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5zDf6/0B/zL7xd9Ex0auSe0TPOeVQ4ktNw1lfiHlBqQ=; b=Y6J50pePIeJWvofoxRgmfatfDS tZUaUmLniY61o/U0jn4qNJEhIoBE2/uoUixtplOls+J3pclmCdiu7TrnwQXMg7QwfamHCLBcbposb tVmSlzrfPSGFYFsdsPVt2auvrv4re+Wn4zkwvrWbXhSkNERDAP7LMnPoJu1/CgyUxs9q09ISDokn0 Cj2v3BJnkw25HIyUfP2KTQB0m6leDI/y6wjUPqI+pzYl0nPKlAg4fZ6XJH+02Xbgd54y1ypDgAD7p NXU2tqWZThm/EBVte+vnSlWgyEufR29XjaXpeQUJzlgY1IGuiQcj047IIltNvcgWOCK8Zs5fXqk+U RL/ZrcjQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q8wE3-006wF3-2V; Tue, 13 Jun 2023 05:05:51 +0000 Date: Mon, 12 Jun 2023 22:05:51 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: "Darrick J. Wong" , Ritesh Harjani , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Dave Chinner , Brian Foster , Andreas Gruenbacher , Ojaswin Mujoo , Disha Goel Subject: Re: [PATCHv9 1/6] iomap: Rename iomap_page to iomap_folio_state and others Message-ID: References: <87wn09ghqh.fsf@doe.com> <20230612150520.GA11467@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Jun 12, 2023 at 04:08:51PM +0100, Matthew Wilcox wrote: > But other than that, I approve. Unless you just want to do without it > entirely and do > > struct iomap_folio_state *state = folio->private; > > instead of > > struct iomap_folio_state *state = to_folio_state(folio); > > I'm having a hard time caring between the two. The direct dereference is fine to me as well and bypasses the naming discussion entirely, which is always a plus. I didn't notice the folio had switched to a void pointer for the private data vs the always somewhat odd unsigned long in the page, making this possibly and preferred by me.