Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3235063rdh; Mon, 27 Nov 2023 09:09:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOhqYfSayrB0ABuQ27d9mnj96egkOBQvvm8HscpHPmxrDjsQHs648ZhdyL8Vum8fM9DO9c X-Received: by 2002:a17:903:2286:b0:1cf:b964:5e36 with SMTP id b6-20020a170903228600b001cfb9645e36mr8123568plh.44.1701104972422; Mon, 27 Nov 2023 09:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104972; cv=none; d=google.com; s=arc-20160816; b=wmS9kIJDmLZd1a6ENUXFdj65zzk4dpXewmWibUXA1Q6cUWBtfPYbQnrZ2VUsixnUIZ yY5dwp1WYWEmZF74XQUWIuHgtO6ZbfwnLEZFm98jwQ27T9liOFqM1ecNXuXagNEoJlyb y16k0x5YnSUMPVMweZkEGuBRq9yPz70qv3a0jd0LGQDKFqYfk5HryPjdLrqFrzf5QGIs AdG56LEYfzJmDxd60FbaMxYcOxUp5LwrrynLd1q3ZMOUnsZ1OZXD2j4sEwscv1s2HjL7 liQFl6gL2YYKlSkuDXp4pLKap99ilWtdLBdk+dX4swLLR4VI198mZqTSBVKc/V0tDYAo 7eYA== 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=Z3F6jPflKA7CV9g/z0Zysna6Er1+ye9+ehS/jCO/u4o=; fh=ruGNc7XPO3LylRvRpn0vVR0lD6TajZpFqzd21ZvMtVo=; b=ma1eQidSqEbvOae2HxJQeTGKwbRyaKrsQQoR4gFq1InHPyC+x97HfCTVcpPjL2o36T HXTNX2Nz97CoPMizsOHTTo8qdek9vazhqJgOgOel4z3y5qAeKWc+eCfrXby1Ha7U9bcB aZzb50qAX4cGVkVz1ThnYDTUqkaBOuBz4Gs9+/IE1ZYhFteZ9yXQQILZnvPmgXn8MQhX gtGHX+amGzTyZ9YsEY5kYFWejGeCqnrJrL1HU18YzyRT8uZ9biFFxMcs8q6lPaxC9qDv a9Lphqlnc4ppXYRsKKNqf9F7GAjzYXDRVOlpyGnlj9h3yQaUMupPrWdQguLzrCRMx1PI AhGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fEADOI60; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ba1-20020a170902720100b001cfcf1faaa3si2411223plb.377.2023.11.27.09.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 09:09:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fEADOI60; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D8645816539B; Mon, 27 Nov 2023 09:09:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234648AbjK0RJN (ORCPT + 99 others); Mon, 27 Nov 2023 12:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbjK0RI7 (ORCPT ); Mon, 27 Nov 2023 12:08:59 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8C9FD4B; Mon, 27 Nov 2023 09:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=Z3F6jPflKA7CV9g/z0Zysna6Er1+ye9+ehS/jCO/u4o=; b=fEADOI60am2EtmgBMr4NHsf+CQ D6KT4KK0fLG/Jd21lGQdivwm6oKcmRDEBg6RE2iezvel/kA1Z6nOuxlPPIo24z85kaJNpPr8G2xBf Ci7FiLFFafGhSadep+fLJUwuEN0CSb28b7DjZ0lNiITKWWlM+2uoJ7VRkbm34pgfSGdFCKva/idGn g6EA+LIvvbBpTiyda3n/vu93lUzg2mvkUnzKl2FOoxs6DKm8RCehzQdso3Ce6nkjUk2GyUooobm9R FH7Gfih40SyUZ+W1SaMzndW3kcynMVC8yU7A9PnXJ3PLQ/PE5F2ZAjAN+DXg1CRNAA1Zrf6+r+Afc YcJzLnMw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r7f5i-00BZzD-3Q; Mon, 27 Nov 2023 17:08:14 +0000 Date: Mon, 27 Nov 2023 17:08:14 +0000 From: Matthew Wilcox To: Ryusuke Konishi Cc: Andrew Morton , linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/17] nilfs2: move page release outside of nilfs_delete_entry and nilfs_set_link Message-ID: References: <20231127143036.2425-1-konishi.ryusuke@gmail.com> <20231127143036.2425-2-konishi.ryusuke@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127143036.2425-2-konishi.ryusuke@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 09:09:29 -0800 (PST) On Mon, Nov 27, 2023 at 11:30:20PM +0900, Ryusuke Konishi wrote: > In a few directory operations, the call to nilfs_put_page() for a page > obtained using nilfs_find_entry() or nilfs_dotdot() is hidden in > nilfs_set_link() and nilfs_delete_entry(), making it difficult to track > page release and preventing change of its call position. > > By moving nilfs_put_page() out of these functions, this makes the page > get/put correspondence clearer and makes it easier to swap > nilfs_put_page() calls (and kunmap calls within them) when modifying > multiple directory entries simultaneously in nilfs_rename(). > > Also, update comments for nilfs_set_link() and nilfs_delete_entry() to > reflect changes in their behavior. > > To make nilfs_put_page() visible from namei.c, this moves its definition > to nilfs.h and replaces existing equivalents to use it, but the exposure > of that definition is temporary and will be removed on a later > kmap -> kmap_local conversion. > > Signed-off-by: Ryusuke Konishi > Cc: Matthew Wilcox (Oracle) Ah; I see. This makes it more like ext2, so I approve! Reviewed-by: Matthew Wilcox (Oracle)