Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2651586rwl; Mon, 27 Mar 2023 03:24:41 -0700 (PDT) X-Google-Smtp-Source: AKy350axGm0lsqVu8pZacTFTZe2P0svX22NYX33hFiNshEESBxRY78y1tZk90DfLU8Bq47gtnuZh X-Received: by 2002:a62:585:0:b0:5e0:a86:a76f with SMTP id 127-20020a620585000000b005e00a86a76fmr10732127pff.0.1679912681014; Mon, 27 Mar 2023 03:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679912680; cv=none; d=google.com; s=arc-20160816; b=PPLZenVOK+UAgWomkRfrXxoifMmZ4E+y7wSW9/owaXa4ZqGJwF8mD9rRxD71rNhUZy qPArr23GMe+V6V0Hh9b1uMm3kirw788rcBW8k+KXgx2KT5iYHar3pWnzB8oOLV4NXF12 qvPH0XKsBQZ/s3RJRm6SavnkM9qgjVSEKRLWjwglVQFfiqbsMtiK0GcS8WYv5Jv5sd02 AZdZ+DGU+bQ+pJNLm3Tdv/rlMStPNAY8Wn7mYcRvwc+kZ7Czn54knJ9VU6vhwrq6sdiL qjlopjIQLCnR4PtDdhExjswFwKvU7omG/MXwxYHTHCZ364B5s0gBQb0OFkYrZlbrPYyl 56cQ== 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=kVN4bA3aMNTKiMhToGO/PROcH1X2ZJW5cID3K62e6GM=; b=BNZ7zS2yJ+Mj3SCVTN68f9FOfizMfnOTA0IqntyctUxiCBdyQvBcqqH8cmOPMQatXs WmGiaj0vYnVKVA3DUv4M88Q5z4z4vzdXRLeyXN2QdvRvhNf5KZDFKIYK3TmdNLbKgAoU U5Gj+RXlqvzFztbWRxZhJUI3nxZ6hKg3P/gGzcjmgchMYgzY0gl/2LJyYnRq6eNvgVWV 4HXJDtO03P85biYgzCUV9u/k/N5NiBQrCLEHv98SDgjWQtUp4mGIoQ2jKBi05fnbjzc8 VEAYplwn3bRmAxIQIWOjhGIah33W27kdSIE1JmOhnegEmmwtNjIZwUv3PD4n2UMtxqzc 7eyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a4fDsZTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a62820f000000b005a8dcaeba57si26797494pfd.371.2023.03.27.03.24.29; Mon, 27 Mar 2023 03:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b=a4fDsZTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233568AbjC0KUc (ORCPT + 99 others); Mon, 27 Mar 2023 06:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233548AbjC0KU2 (ORCPT ); Mon, 27 Mar 2023 06:20:28 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955284C0F; Mon, 27 Mar 2023 03:20:26 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id d11-20020a05600c3acb00b003ef6e6754c5so1542499wms.5; Mon, 27 Mar 2023 03:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679912425; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kVN4bA3aMNTKiMhToGO/PROcH1X2ZJW5cID3K62e6GM=; b=a4fDsZTwGNNI91uKTkqzjm+dkquVOWwnodNN7eiOn76lmDnJkT7YfvYfW0J271gkiQ 6wWbLEl9gP++PdhBVVWn4vOp3nHvQCOFbC0GCMy4skKcJzugaPPcSaUrLvpwfMYIlW5B YBaUiiMl0Ljyp/CNS0I4KB2OkeeXs7gm8HBxyjij4Otj9R7PzOHb25AWeqxRQMqFdTrW xVR3Kr7NbIB81qUIJG7pwB9X2nYFkWjlYDUnboueecvTUxT3IR4zCLA7R51yIk0Qj0QY bue4JPDm9lzu7N1xgcxiii3tyuV4lGHlVjasuFOqCc//Y3IY4PS0Egv5lZ6DyjJunkXu crnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679912425; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kVN4bA3aMNTKiMhToGO/PROcH1X2ZJW5cID3K62e6GM=; b=aai3E8QN5J29SdWvP52m0D1Wgf3wV4JqyThpgpGfWy7HkWZohpYVKBB/EM7RezMw7D jUxjZQ/TNLI+3t5zpLy/fwCQdmRqmf5Mv2NOm1ZMhyml9fvDvKXtqA8a3+KkBmX8xX2v iAvjJMinfGTXoH0BChdQvl03i/QWjUkQkBN5aEzA8WFbvKGss/q9QbwpYkL5sl2gguM/ 9uS3osXOJXImRBPVOdD/QAor8g/2lOOHWBhkp+R3GCxMrjDLTu7upHvZpm6d7Snv/mtE vOagXKFCNZiXSb8Rep1n35D9Lj+VT04AtlYT6+y2xLeZkOy7E5fQDHZECoXLZ/EE72nL qNHA== X-Gm-Message-State: AAQBX9erCYsYFLj0GIJdwhiR5a3p09SDvRRRSymvL91eCVWxYneVksOF m10jK9WjvrA/jtvjsGoGK2I= X-Received: by 2002:a1c:f216:0:b0:3ef:5e17:1ed9 with SMTP id s22-20020a1cf216000000b003ef5e171ed9mr6667246wmc.31.1679912424956; Mon, 27 Mar 2023 03:20:24 -0700 (PDT) Received: from suse.localnet (host-87-19-99-235.retail.telecomitalia.it. [87.19.99.235]) by smtp.gmail.com with ESMTPSA id j6-20020a05600c190600b003ef6bc71cccsm4401373wmq.27.2023.03.27.03.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:20:24 -0700 (PDT) From: "Fabio M. De Francesco" To: Al Viro Cc: Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ira.weiny@intel.com Subject: Re: [git pull] common helper for kmap_local_page() users in local filesystems Date: Mon, 27 Mar 2023 12:20:23 +0200 Message-ID: <2729240.9PvXe5no7K@suse> In-Reply-To: <8232398.NyiUUSuA9g@suse> References: <20230310204431.GW3390869@ZenIV> <8232398.NyiUUSuA9g@suse> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-kernel@vger.kernel.org On sabato 11 marzo 2023 18:11:01 CEST Fabio M. De Francesco wrote: > On venerd=EC 10 marzo 2023 21:44:31 CET Al Viro wrote: > > kmap_local_page() conversions in local filesystems keep running into > >=20 > > kunmap_local_page()+put_page() combinations; we can keep inventing names > > for identical inline helpers, but it's getting rather inconvenient. I'= ve > > added a trivial helper to linux/highmem.h instead. >=20 > Yeah, "put_and_unmap_page()". Nice helper :-) [snip] Hi Al,=20 > Why did you name it "put_and_unmap_page()" instead of=20 "unmap_and_put_page()", > for we always unmap first _and_ put the page immediately the unmapping? > > It seems it want to imply that instead we put first and unmap later (which > would be wrong). That name sounds misleading to me and not sound (logical= ly > speaking). >=20 > Am I missing some obscure convention behind your choice of that name for = the > helper? Can you please explain what I'm missing behind your motivation? Thanks, =46abio P.S.: Adding Ira to the Cc list, since he's been doing kmap() and=20 kmap_atomic() conversions long time before I too started with them.