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 6E081C38142 for ; Tue, 24 Jan 2023 13:19:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234140AbjAXNTA (ORCPT ); Tue, 24 Jan 2023 08:19:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234205AbjAXNSj (ORCPT ); Tue, 24 Jan 2023 08:18:39 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D24E46712; Tue, 24 Jan 2023 05:18:16 -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=HTTBGfjn7nRkSukN0saTCzZiE/bxcd4l/l4Ax47zdsU=; b=GhSP7kMTmQvV91SOWLa+z+5Wfm DLMaXzL855XpJ273A6saQAsgAijJyKQuGH1FMtelh6lfkjN/Xg3BSVnWRTubPM4QVDLVrBvUEAzcp xt8Nkkr4ntZLRjTvdZd6uvckAq0XupErlSbwg8lQKTLWYibyFUDWs1iu/+Gvu7P7wfZ9siBeLMyir bAydGKjzGgMknI6XORTajsUe0zCAfpsMZcjl4Xj/n6R6ko5/Tr29TfeBROUw2Z0JZwW8qBENvQ4D+ 9JhToKv8qUQ6AgZ5WwG8boOrTzibQaFmFgal5rIFH6XPCdExHFHiVLst6rqJ/dZBbT8MGI7BA398Y vG+84tiA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKJBf-003vM7-PB; Tue, 24 Jan 2023 13:18:07 +0000 Date: Tue, 24 Jan 2023 05:18:07 -0800 From: Christoph Hellwig To: Jason Gunthorpe Cc: John Hubbard , David Howells , Al Viro , Christoph Hellwig , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , linux-mm@kvack.org Subject: Re: [PATCH v8 10/10] mm: Renumber FOLL_PIN and FOLL_GET down Message-ID: References: <20230123173007.325544-1-dhowells@redhat.com> <20230123173007.325544-11-dhowells@redhat.com> <31f7d71d-0eb9-2250-78c0-2e8f31023c66@nvidia.com> <84721e8d-d40e-617c-b75e-ead51c3e1edf@nvidia.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 09:13:30AM -0400, Jason Gunthorpe wrote: > Yeah, I already wrote a similar patch, using the 1<< notation, > splitting the internal/external, and rebasing on the move to > mm_types.. I can certainly drop that patch if we'd rather do this. Given that you are doing more work in that area it might be best to drop this patch from this series. > Though, I'm not so keen on using FOLL_ internal flags inside the block > layer.. Can you stick with the BIO versions of these? The block layer doesn't really use it - the new helper in iov_iter.c returns it, and the block layer instantly turns it into an internal flag. But maybe it should just return a bool pinned (by reference) now?