Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp224691pxb; Fri, 16 Apr 2021 04:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhpaaCURMXUQlH8sYyHtq7yo3ExYW2InIGu0xt2UOKac+6C+4yeuLCR6dA7c1sdbpE/qXQ X-Received: by 2002:a17:907:3f93:: with SMTP id hr19mr2859519ejc.76.1618571471572; Fri, 16 Apr 2021 04:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618571471; cv=none; d=google.com; s=arc-20160816; b=0tTKnLgK10QJ8NOUwRleKsJTXZSVM0Suw4V0yK51FlTbhR59tpQVpStEq6z491MHsS QTUIuxFx7rnoY6S6948MBLNFpBJTDxvezZ1D2+5M8R8+g3lBtLXtJoi2S4JGo/nRI77H y1wL/mhakJHhu0wRyXGOnKbE0h2nfWx9SSlEWpCd6zV47QJd6Azy8NSQmxggzqdWbTWh u2YWFKsj7uL2kVII36XiS1OML1LjosnWP6Z3F3+1VhvO1XWdLBWXGRRrYNsSeJqar8Ag OYFsYCoeiTnhtcgg7t/BuFzQZ/NdtvwNUkDhLu+yuYplbKRdcmKnDt6oZoFS8mUYCN7Q tD9Q== 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=q8yzRZdY2wah1G/yCTkxWNbB0jFfZUvqQ3uEjV6WRbg=; b=M0r/4mIMbWSecsgl/dvUmXLwJWG8jKLAshmGFtRSjDU1ATtR5Sjxnadap48RAeztXy eMgMXKJXa7alpY7Sy3kqdnAA+ImoYyzBH4FM8C9adIQSmgkQNfVGhj+/YQ9Cq3b9EvH9 1dVlZSELOdPzwqmRf+GR54Q/Je5FCnKKftEoJThffGTqmyrjB7XJL7WadYcM1pzUtTxO fSHFbKTDHT7Cd3AzkopxTT3o+xkWzg/Bc6kERk/z1Fmhr3YOafr7MfA+khuEk4Z3Np7h X+GXwFImkZ0IlsUPPj4PC46x2UuJLLMx8yJot9ADO3mmSpumN1pf5KnvdvgAEkYRsJkA ShFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hh9zQfxD; 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 m6si4984982edq.242.2021.04.16.04.10.47; Fri, 16 Apr 2021 04:11:11 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=hh9zQfxD; 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 S240513AbhDPLGi (ORCPT + 99 others); Fri, 16 Apr 2021 07:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235120AbhDPLGh (ORCPT ); Fri, 16 Apr 2021 07:06:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087F9C061574; Fri, 16 Apr 2021 04:06:13 -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=q8yzRZdY2wah1G/yCTkxWNbB0jFfZUvqQ3uEjV6WRbg=; b=hh9zQfxDvG2X4xo9Vk3zOGv+gZ QKntKgbYQxOmJbb/qwMrADTgbL8yz3oUhd3HEVZJgrY81Z+RWvtUKKoC8013lyugG2k8O7umfbJam gAhDbhGAPve6oN0MKZsJdwlfW5fC1MWvd6G5LMajXM5TqmIFfFtrkgHcaAZHgvXMnGtFGhwT/4HmK CsjhiBL3nsVtLo7E7Dvy9fj8xomDDJge0rOCzwzXKycyeIlDt/8ml1XDq6Qx+KbmBhQ5d1+BhQ6W5 Piq3UrI2NLCuHxk3SVM4ryUk+gw6UwwBM7IiZJ4NrS7iOhjfU6YhJB+tUEtO+rntTBicYBF62ikeR Oi9OJ1dA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lXMIL-009rDn-92; Fri, 16 Apr 2021 11:06:01 +0000 Date: Fri, 16 Apr 2021 12:05:53 +0100 From: Matthew Wilcox To: David Laight Cc: Jesper Dangaard Brouer , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mips@vger.kernel.org" , Ilias Apalodimas , Matteo Croce , Grygorii Strashko , Arnd Bergmann , Christoph Hellwig Subject: Re: [PATCH 1/1] mm: Fix struct page layout on 32-bit systems Message-ID: <20210416110553.GH2531743@casper.infradead.org> References: <20210414101044.19da09df@carbon> <20210414115052.GS2531743@casper.infradead.org> <20210414211322.3799afd4@carbon> <20210414213556.GY2531743@casper.infradead.org> <20210415200832.32796445@carbon> <20210415182155.GD2531743@casper.infradead.org> <5179a01a462f43d6951a65de2a299070@AcuMS.aculab.com> <20210415222211.GG2531743@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 07:32:35AM +0000, David Laight wrote: > From: Matthew Wilcox > > Sent: 15 April 2021 23:22 > > > > On Thu, Apr 15, 2021 at 09:11:56PM +0000, David Laight wrote: > > > Isn't it possible to move the field down one long? > > > This might require an explicit zero - but this is not a common > > > code path - the extra write will be noise. > > > > Then it overlaps page->mapping. See emails passim. > > The rules on overlaps make be wonder if every 'long' > should be in its own union. That was what we used to have. It was worse. > The comments would need to say when each field is used. > It would, at least, make these errors less common. > > That doesn't solve the 64bit dma_addr though. > > Actually rather that word-swapping dma_addr on 32bit BE > could you swap over the two fields it overlays with. > That might look messy in the .h, but it doesn't require > an accessor function to do the swap - easily missed. No.