Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4717715rwl; Wed, 28 Dec 2022 07:56:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGseWPlKkVVKKYbd5PZUTFsu8XOpkqq1tWTJJ9wJdAlwhV71ZYSbY8YeamStJajUZzQ3yR X-Received: by 2002:a05:6402:5418:b0:474:a583:2e1a with SMTP id ev24-20020a056402541800b00474a5832e1amr21094010edb.12.1672243008069; Wed, 28 Dec 2022 07:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672243008; cv=none; d=google.com; s=arc-20160816; b=li7rfHS7B8fryIG3lZ3GeKwtIf0HG0LR1CG6lR9QCcG0H8lF1BYHtcz5BZZzO6XAXG P+doVBDlBSdcoCfpjh9n/7LoJVqrlbnKSoMRRKDraGCji6RrrahSPx85SY0R3OBs4f+i B18aU3K7hwHGsgQvKKsqxHm0UmB1W2yfYn1EZ8gPZmhDKn/ksOleO96dFpHsaf3iTp9I fFXc2LjdK6wtcykak8/n11cm+fLw4J5wrR7SDdYa+Hhjsm71ZAFW74Q+hdwThIMkzFPY 2MnvnJGTwZd5ay+Joj3seOjnDy2wN2lPt/E5+ozYpUIlu9cB/P55cV9t5tnTb5AH9z3U 18EA== 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=6wGBkXWPpYjazxvcUxjswCd89wx6pPvJfoOTyM3QCW0=; b=0ZTn7DNP2oMH3Ufj7dg4DyA5CJpZoDvqnxra2zwfdKrMcm94rkFad3HGZP+8Kgr4hr uyWn0y1MQluBxxtVkR0rQL/9wQ/Sl0qx/f+JZB/JRcmfqEU7nVk3yqKzg+VYjioiWIm7 KKWvzMor7iDErDmzwFx9zakfgKFwHXoyrDHl7H+zxORnEH7uBuFtYebSE2KHzJFS/k9e a/yax9pfKj9+juJt6Jzu40e2ZfRgf9Q0Yu2z1bPy6GHGBz8dVsj70oLDXtfC067nDcnC Gmcah6nLIV5m7J5oRu1vlmG9PlnBWyeaNlCTrkoeSQiDC4qj7Pe0e/2yqKJYo/kw8S09 xQWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=On4SKrzV; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d37-20020a056402402500b004819219f5fasi12359944eda.152.2022.12.28.07.56.16; Wed, 28 Dec 2022 07:56:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=On4SKrzV; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbiL1P4C (ORCPT + 99 others); Wed, 28 Dec 2022 10:56:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234175AbiL1Pzy (ORCPT ); Wed, 28 Dec 2022 10:55:54 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A844BCA1; Wed, 28 Dec 2022 07:55:52 -0800 (PST) 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=6wGBkXWPpYjazxvcUxjswCd89wx6pPvJfoOTyM3QCW0=; b=On4SKrzV9Wx6r81NZbva4k9nEo pr6uIv9hdLfqf6V2Xa/YbVIDBgvKq6gqmrhuTuQIkSkSsbGosBms+BWiHbN1IkQnJlheOs31HHNOw QRWhQzin2Acs8stxmKvgqFSEqqeVFJerctSHUEc6NrKPeYwF9iotOmVNTKuRwyvqKyxR3i0XpYY/T tOjw7E7kKjKXIQeHBzXT4SuxVxr6Qan5D5Tn/5rmp0UYiHMPq8Xw58Hg5KECDd5wZgGi43AyFxFdN jWhkQs1cF+HcT6/7KoR5N8MKZuy9A7Bk7hATnR32nrmDEnDRXOMBSxYSTUsilcX/m5XDAaeR//Aqu FjXDU/ZQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pAYmM-0067SQ-6j; Wed, 28 Dec 2022 15:55:42 +0000 Date: Wed, 28 Dec 2022 07:55:42 -0800 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Andreas =?iso-8859-1?Q?Gr=FCnbacher?= , Andreas Gruenbacher , "Darrick J . Wong" , Alexander Viro , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com Subject: Re: [RFC v3 4/7] iomap: Add iomap_folio_prepare helper Message-ID: References: <20221216150626.670312-1-agruenba@redhat.com> <20221216150626.670312-5-agruenba@redhat.com> 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Dec 25, 2022 at 09:12:34AM +0000, Matthew Wilcox wrote: > > > I was looking at it from the filesystem point of view: this helper is > > > meant to be used in ->folio_prepare() handlers, so > > > iomap_folio_prepare() seemed to be a better name than > > > __iomap_get_folio(). > > > > Well, I think the right name for the methods that gets a folio is > > probably ->folio_get anyway. > > For the a_ops, the convention I've been following is: > > folio_mark_dirty() > -> aops->dirty_folio() > -> iomap_dirty_folio() > > ie VERB_folio() as the name of the operation, and MODULE_VERB_folio() > as the implementation. Seems to work pretty well. Yeay, ->get_folio sounds fine if not even better as it matches filemap_get_folio.