Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1600954rdh; Mon, 25 Sep 2023 19:22:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsowMGUBEDu4ofD3msS+fQuH+Swfa3xj18rwexr3wpk83a9HnDki6xQMQEvif2NNuazvyW X-Received: by 2002:a17:903:22c9:b0:1c5:b4a1:ff6 with SMTP id y9-20020a17090322c900b001c5b4a10ff6mr8152431plg.45.1695694977172; Mon, 25 Sep 2023 19:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695694977; cv=none; d=google.com; s=arc-20160816; b=uI5bttS7bcWtxnXbtUZlNi6p7a+nVNvWH17xjno+7vWgQ/PbdjkZaSOnhnZjhui1+X oZwWGYc3pHjRGdV0+MxwC5mQxjQngWJj2uFRec05+Umu1u7LBLa8+7jLjGbm3I4j0uB7 iEvuBk9l1iwGfjwx53r1lAsWyV79iwDGZjGRm0JN8jSkfVcD8B9aP5QPcyPaInOcmboy JWl14LFTWMAb/EK99JU/lUaU/ZSQHTwHvgVp4ezRUBJl19ae0dh628FIcupSzjvC4ChD rd5vxWKwBMspMn7eZTD9BBi8SzoHRiQLYSvJclfvmAfs1pCHIBCIYX1Tr8IO2u1ze4YJ I6fA== 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=0fDLKihRWQLrfuSj3jvyM87kiZ324I5dyke0dlSl6/U=; fh=Yibd+6efQ2NbloUNqjhUgqChaOBGlXVnr6VE1C45OVo=; b=DbpGhwQzxWKP12UMBsl4e8dFCEK6CpWlB7j7Sk8a1eZic3jTqBYsUnRvBsW0j8W6pj 6/Fxn8X2QgP93TdnVN2Hwf4IBhJW3sLg4Llti0RhfiuzGJcGdsMEMhmXWglEFDqDRWsS CW9DqA/+TPHeuSj7B/pY0m65cSV6sipmfKrHV72cUn1VXqoxq8XgnEQm8BRwIpio7Si4 fz/ITRpPHOSmQ2dOk/9NMa3s6Sgiy8IxfwHy1kCKDey24G1eipnZXk6J3+2pzFKOcLym oLB5AB7niVv0hwgoMSzXAbMdcYKtRclS+xvYLOGGXErFh444K6YI2TR7yO6jnHekN7tZ P3qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gVOU3bZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d3-20020a170902cec300b001b874c5f7a8si12028910plg.653.2023.09.25.19.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 19:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gVOU3bZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 340C080B79FA; Mon, 25 Sep 2023 15:38:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjIYWir (ORCPT + 99 others); Mon, 25 Sep 2023 18:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbjIYWio (ORCPT ); Mon, 25 Sep 2023 18:38:44 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0727126 for ; Mon, 25 Sep 2023 15:38:37 -0700 (PDT) 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=0fDLKihRWQLrfuSj3jvyM87kiZ324I5dyke0dlSl6/U=; b=gVOU3bZEWFPlb/ZscqM+AjKdYV bCmLwRJ+59OVEzBJriTe2B7GbFwbQ6vEVu9iPU7z0GJ2T6cQ8ENFzjfR9YCl4aUUD7fr/my2J2C+n zSj36KmLk3alHQJqWSesv90jvAZgD+6Alq+PVVVYsmRVHvrf9SgLPjw+Hqgm6i26FW7Hzi+QP/1wW tbjtLgdagf77505qd5gO0L9Rja0Zm1fFfiC1274yQhTS6PpBAO6fsZreRVAnJqBKaOANLNqBPHDbc 4StzGMWtGZwnKGvWLytSfTmNf0h141i7DtUYN5cL/52Q9Mt1DIPxyCtAaqWL7LosUXNyXLTwTIHE2 yKDoHDaQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qkuDZ-0043Wy-Lo; Mon, 25 Sep 2023 22:38:18 +0000 Date: Mon, 25 Sep 2023 23:38:17 +0100 From: Matthew Wilcox To: Hugh Dickins Cc: Andrew Morton , Andi Kleen , Christoph Lameter , Mike Kravetz , David Hildenbrand , Suren Baghdasaryan , Yang Shi , Sidhartha Kumar , Vishal Moola , Kefeng Wang , Greg Kroah-Hartman , Tejun Heo , Mel Gorman , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 06/12] mempolicy trivia: use pgoff_t in shared mempolicy tree Message-ID: References: <2d872cef-7787-a7ca-10e-9d45a64c80b4@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 15:38:55 -0700 (PDT) On Mon, Sep 25, 2023 at 11:31:40PM +0100, Matthew Wilcox wrote: > On Mon, Sep 25, 2023 at 01:28:14AM -0700, Hugh Dickins wrote: > > Prefer the more explicit "pgoff_t" to "unsigned long" when dealing with > > a shared mempolicy tree. Delete confusing comment about pseudo mm vmas. > > Yes, with three quibbles Actually, a fourth has occurred to me > > struct sp_node { > > struct rb_node nd; > > - unsigned long start, end; > > + pgoff_t start, end; > > struct mempolicy *policy; > > }; This data structure is unused outside mempolicy.c today, and you don't add any. Perhaps we could move it from mempolicy.h to mempolicy.c?