From mboxrd@z Thu Jan 1 00:00:00 1970 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 4F583C25B50 for ; Fri, 20 Jan 2023 18:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjATS7n (ORCPT ); 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> 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.