Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp852901pxb; Tue, 9 Feb 2021 14:30:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwAC4AN34wQ3tm5PMi2kkn+elrZ40uYm7SHLX/4j+v8C7CgLXOOndL74My/wURfetkv0cG X-Received: by 2002:a05:6402:5193:: with SMTP id q19mr296155edd.264.1612909819201; Tue, 09 Feb 2021 14:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612909819; cv=none; d=google.com; s=arc-20160816; b=yaBfl4n7gmmOM9sxZoUrbp7XG/96LPqbKZY/rPNhS6YVlFrd7U5i9b9iKjsnMHXQqB LUHdvRJPkO93YWBQf91OouF4PJWHLh+X/nVpHHV2YoL2hueIfA4YO4VJRQo706wPbng5 SPj5k8p7hdQzfSD0NMBqNY3VR/PACLOgNrowAJ3ZmqlCGyWZJFap86aN5XapmFX+GJjW oNisSgBuygMSo4haoXwx24GWXpaM5RSKtMtnjVcKCpMbPgvdNRhG9313PG51QhLW7L3n 7II6kqgK38TZxfRRpwRwZa79Aewt+Oy63ym4dm20APAK8z+TCHPpqugT+2gnt8rx0EFb 9VzA== 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:subject:cc:to:from:date :dkim-signature; bh=FLrmai0zZMTOtBNvAblQ5obuI1pzhFc+xW1qXUugU0Y=; b=WWRLOGdTmTPwi76cSK6nUX601KTDUuK7DaBR4av9sXBqu1FxS5gR+HtEQmRaD6oTrH +BG9TKn10r15U0GpdaH9yAsYFG4nH8hYN7u4KYd56hI8C+Et55B2ajQBBGfr3wlnl1TK aR+ZzABX+huq+u/LdFgBJ7cuwFt4lPzU15Hl51y9UWvRPTD/UceilM3dfDDc5rGK/omD Z8xsdM+sQH0Dt0WQTUOryuI5olhae0OEg+hJw5foSyLwYfIEXfhGNfBiWtYVXLjCwZON qDfmyvTL1EbxHGAL+A89OSGI+/dnkj7u8+XXKXtTuLCNMkcaIqI0chWac7nN1BuMTGKr WR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=D2TPqJJ4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si15952049ejg.99.2021.02.09.14.29.55; Tue, 09 Feb 2021 14:30:19 -0800 (PST) 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=@linux-foundation.org header.s=korg header.b=D2TPqJJ4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234089AbhBIW00 (ORCPT + 99 others); Tue, 9 Feb 2021 17:26:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:55624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233364AbhBITmZ (ORCPT ); Tue, 9 Feb 2021 14:42:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A3BF64E7C; Tue, 9 Feb 2021 19:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1612897772; bh=C1sO+7VHfI5EfcVi7WgJbSPsEPe7iFjqDf9cNt777Ps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D2TPqJJ45vfBYwEkmpfK3UKSwFbePfHIwIxYQ4rM3obvc0X7IKXTWvo0seXlu6Lfr yBojLOQfHNvrxEurKRRiddcZmFz/RO5I/CyS5PxWL16REAeI/e56f/+0RBaW0sqxyU 5W+chH4Ca6TUiDWOItSBvR0pr3PLEdSSECtXvQyE= Date: Tue, 9 Feb 2021 11:09:31 -0800 From: Andrew Morton To: dsterba@suse.cz Cc: ira.weiny@intel.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/4] btrfs: Convert kmaps to core page calls Message-Id: <20210209110931.00f00e47d9a0529fcee2ff01@linux-foundation.org> In-Reply-To: <20210209151123.GT1993@suse.cz> References: <20210205232304.1670522-1-ira.weiny@intel.com> <20210209151123.GT1993@suse.cz> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Feb 2021 16:11:23 +0100 David Sterba wrote: > On Fri, Feb 05, 2021 at 03:23:00PM -0800, ira.weiny@intel.com wrote: > > From: Ira Weiny > > > > There are many places where kmap//kunmap patterns occur. We lift > > these various patterns to core common functions and use them in the btrfs file > > system. At the same time we convert those core functions to use > > kmap_local_page() which is more efficient in those calls. > > > > I think this is best accepted through Andrew's tree as it has the mem*_page > > functions in it. But I'd like to get an ack from David or one of the other > > btrfs maintainers before the btrfs patches go through. > > I'd rather take the non-mm patches through my tree so it gets tested > the same way as other btrfs changes, straightforward cleanups or not. > > This brings the question how to do that as the first patch should go > through the MM tree. One option is to posptpone the actual cleanups > after the 1st patch is merged but this could take a long delay. > > I'd suggest to take the 1st patch within MM tree in the upcoming merge > window and then I can prepare a separate pull with just the cleanups. > Removing an inter-tree patch dependency was a sufficient reason for > Linus in the past for such pull requests. It would be best to merge [1/4] via the btrfs tree. Please add my Acked-by: Andrew Morton Although I think it would be better if [1/4] merely did the code movement. Adding those BUG_ON()s is a semantic/functional change and really shouldn't be bound up with the other things this patch series does. This logically separate change raises questions such as - What is the impact on overall code size? Not huge, presumably, but every little bit hurts. - Additional runtime costs of those extra comparisons? - These impacts could be lessened by using VM_BUG_ON() rather than BUG_ON() - should we do this? - Linus reeeeeeeally doesn't like new BUG_ON()s. Maybe you can sneak it past him ;) See what I mean? I do think it would be best to take those assertions out of the patch and to propose them separately, at a later time.