Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3093530rwb; Fri, 20 Jan 2023 11:05:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvaI6jRnBT1pPHMumKeIl3ef3M2QMnhTCGLyGglZYWCYz6Mw+Gmf5nnsH7IyhVlrQR3hvwp X-Received: by 2002:a17:903:4cf:b0:194:bdd0:69a3 with SMTP id jm15-20020a17090304cf00b00194bdd069a3mr10275147plb.35.1674241529444; Fri, 20 Jan 2023 11:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674241529; cv=none; d=google.com; s=arc-20160816; b=qbh+r4Tap1/Bw992BwEwsvLPHDmbYFFIL7CwMYYjC8XHwRR8wT3VrJ1pTuKk5YCCec 51f2vk5hK/oCamyBlnB0nPL8otgXwrj+3ERseWewxSntusOdwOX9/vYCufxTcpNs71+b 7QaHYOAIaX++pu+Fr5pu65X8om22+Cb8LgrD3BHUWCCe1A7MggBAEbDlYvGrD/okZFAf vUlKdVJ21DooDUcchKlV1HrleYEOOl8Rc2QNl57t98AezX3eAIeqeWeTyOHkw/ypbjfA 3IFXDsTnkxnKTVd7hYoUvgOzQYEYq8OumEiSxJXCZflPKkiFwYaSGMuds2sjUXaJpKCV iMYA== 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=faS00BN0vzsZ6ntF3Du1tRjH6pklFXGeUXMszEheyEE=; b=MBLB1YpTDXmYO64xRg4P62JVRPLQsEU1EjFv6YMp1aN615BOfqTqzoHXcVP4z45iVz vg1kmda7E1iycYHSqgWmQMEN1L6tphHWc1oiJ1n0M0GsCRN3YrupqMacaQJX075TpVXE c/2RN87nZQaVdg1pb37Fgf0JmD0Mn8ruUlrLkRO5RQNfsREmP/t7AVansGjJ9Y8pr+PT sWc9Z+f2P7WDa0RNs2hSjMyumQ2sDDBw4iHT4Wm+j0d746ymQGQlX7TD11xkiegkNs4U PbhvG1U3WZh6hoY//Tv9/5f77gaoNW46/hq6hDQDvGyRD2K2eMBKQHGkDfjDH0eJIDO+ MSwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hYEyUmqN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a170902c94100b00194ac38bcabsi13165163pla.289.2023.01.20.11.05.23; Fri, 20 Jan 2023 11:05:29 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=hYEyUmqN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjATS7n (ORCPT + 50 others); Fri, 20 Jan 2023 13:59:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjATS7m (ORCPT ); Fri, 20 Jan 2023 13:59:42 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C48310410; Fri, 20 Jan 2023 10:59:40 -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=faS00BN0vzsZ6ntF3Du1tRjH6pklFXGeUXMszEheyEE=; b=hYEyUmqNaKOTuvNMQxJooIHLIV AmQgKPQh2tIfprwXAHw7LP04bGXquP0MIThAlkNGPK4ohKVh4Hg9paQvYMAyhJmwiwolxCuS57qib GwB+AQ9Do+DYxm+Nk4NMIOIyFhC7xV88waK71ekyZC9RGt/LgQrIyIX6RLJ7CnEtTUVjGPiWG8WG6 tWt9jlMjP9gcFfoyUWpgOq3gFDQkllEprXljcu6wOn0HRzLt/k+B+M6qNfCIecDSEvWqCY8GXEKdJ 9DYHQg8NEqZ+1oaHoR8PgwJH+6cXkl4Gpm3tUf4Ylo5NFQlgOvIRmVG3O97LHElLAwvFgQRaF7tO3 uaNVGPiw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIwbl-002Knj-Ds; Fri, 20 Jan 2023 18:59:25 +0000 Date: Fri, 20 Jan 2023 18:59:25 +0000 From: Matthew Wilcox To: David Howells Cc: Al Viro , Christoph Hellwig , 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 v7 8/8] mm: Renumber FOLL_GET and FOLL_PIN down Message-ID: References: <20230120175556.3556978-1-dhowells@redhat.com> <20230120175556.3556978-9-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120175556.3556978-9-dhowells@redhat.com> 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-kernel@vger.kernel.org On Fri, Jan 20, 2023 at 05:55:56PM +0000, David Howells wrote: > Renumber FOLL_GET and FOLL_PIN down to bit 0 and 1 respectively so that > they are coincidentally the same as BIO_PAGE_REFFED and BIO_PAGE_PINNED and > also so that they can be stored in the bottom two bits of a page pointer > (something I'm looking at for zerocopy socket fragments). > > Signed-off-by: David Howells Reviewed-by: Matthew Wilcox (Oracle) Although I was hoping you'd renumber some of the others since we currently have gaps at 0x200, 0x400, 0x1000, and 0x4000 as well as the 0x40 you're using here.