Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7146173ybh; Thu, 8 Aug 2019 10:52:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeZ4fdELWqZx94VvkDogMjMwCxh8L6dSb+JWeXiA63hWOtCWR4ziER1ca1u++Efa3ZmmOz X-Received: by 2002:a63:2364:: with SMTP id u36mr13315658pgm.449.1565286746002; Thu, 08 Aug 2019 10:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565286745; cv=none; d=google.com; s=arc-20160816; b=vIHzs01SgvUfHrRb7xAVQ3anC2QafFLa7a2g/fye9G5Rq5Le7qR/k0nCUGtqLqxdBv yUYTV2tPjpzhevJQDOib0QRzVlyGWFvjBeFDmE7ydqXaFc3DpepCIVnluevUIS0xNOGv r8aJtGmaO+oVWn3phBF+y7wpuKLseLZheIafFtZVxRcKOYRHe7HVN4w78QlW0nHXCLeg n9/TfNDDDZTEc60kdC0iUlDR1gVTaTwHEcyg4M2NPTeLbVjsimaWG2wueOE+N4gcSznQ CfZEQPc+Pv2hjOCDfBrMw7JhGEP5Ri/69rWiB+YLUTqd+cSvkbQJ5iZzrt3PvpexhZtU E4WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PaqvtAtk6zixEgRbfRi83KAjX0fbzFPUrAlK05McGqs=; b=XExoYL6kkQDBwvEeEXj0M1bR4xKEoqNRqkeFrA/3hfyOS97CUN2YRZBgDguBPLtC9R Co6jH6YAazmflKxyGseIyM/HLtqXpGVJBjH2ZELIyKtmF5EG8f2CDx1WyvVm7d4Ze3v8 0fd9vGKGlauWAQ02HRj9ReHv5rAa+S6uD4NduRn8YirQ4Dx6dd9ZQhPVpTQCF0KXrKSH 7Pxl6whFscXuEa7hJdkb4Go39msTsZDrZhkk7c9/0OaiHXrNFTHawI4cdP650ZIN6UBV FuV8Na4HhCKteTcxPVZLvZ0pXMZ84k1pShyHIB63Stz/ksqdrNE9GIbqUee0r/S+5gcK KtlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bgbHJGPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si4275322pgh.385.2019.08.08.10.52.10; Thu, 08 Aug 2019 10:52:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bgbHJGPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733047AbfHHRu6 (ORCPT + 99 others); Thu, 8 Aug 2019 13:50:58 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35297 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729925AbfHHRu6 (ORCPT ); Thu, 8 Aug 2019 13:50:58 -0400 Received: by mail-lj1-f193.google.com with SMTP id x25so89780350ljh.2 for ; Thu, 08 Aug 2019 10:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PaqvtAtk6zixEgRbfRi83KAjX0fbzFPUrAlK05McGqs=; b=bgbHJGPTR7Koz+c795LwPw5LpjTkYHSGo/WjpWK8uhqHWX4RU/bw/U9W/Ciokdadeu SGeRFfN9p7jgody3HoUb/XyE+F1uRIDJUun78fKUfuAUfCCMsxPiNoI47NPA99/T2Ok4 kVZRDdHEM2k89KQ/yjYtrD7kr74Ot3DoZ7wk0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PaqvtAtk6zixEgRbfRi83KAjX0fbzFPUrAlK05McGqs=; b=ThkZNv1lG1x0/kqoikXlpU9jSP6IX36Sd9xvXdBXCDfzgu1beCIpcNywFvoU59UbPq RFbunPKa81U7vYglvrfu4C2TQ/GUQywxlq+Qt92vDpdiCaIm0iRgCqmVNUJl/HTcBtUa hRa1E7os8RjT9E0EoVcxVWZyAhUzHLvpJpDVwwXGW4TP/I7EKxXDHkZbtBq9XvLUC8nk IBh7r3DuFdPjg7psf3O+vtUvAx3WqcAKXGVvriq3idqD9UI2WnswaMdON5GHYx13MqFu YjHTrNHi6TNrTLbh4QOJEzr9HdSsg/gFd5UpGLP5rWLQciyTER6v9JtiIjmmPHrdJO/S vYAA== X-Gm-Message-State: APjAAAXGqhl1dMK4TOKDS6+2i9Vfs5a0JI/rPsdYD4nMcT/ozG+UujSj wRKgMON/EreSXSUBj+SyiIEM0nJ6CAk= X-Received: by 2002:a2e:9951:: with SMTP id r17mr8918804ljj.125.1565286655172; Thu, 08 Aug 2019 10:50:55 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id u15sm19147029lje.89.2019.08.08.10.50.53 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 08 Aug 2019 10:50:53 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id j17so13477276lfp.3 for ; Thu, 08 Aug 2019 10:50:53 -0700 (PDT) X-Received: by 2002:ac2:5c42:: with SMTP id s2mr10385649lfp.61.1565286653238; Thu, 08 Aug 2019 10:50:53 -0700 (PDT) MIME-Version: 1.0 References: <20190808154240.9384-1-hch@lst.de> In-Reply-To: <20190808154240.9384-1-hch@lst.de> From: Linus Torvalds Date: Thu, 8 Aug 2019 10:50:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cleanup the walk_page_range interface To: Christoph Hellwig Cc: Andrew Morton , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Jerome Glisse , Jason Gunthorpe , Steven Price , Linux-MM , Linux List Kernel Mailing Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 8, 2019 at 8:42 AM Christoph Hellwig wrote: > > this series is based on a patch from Linus to split the callbacks > passed to walk_page_range and walk_page_vma into a separate structure > that can be marked const, with various cleanups from me on top. The whole series looks good to me. Ack. > Note that both Thomas and Steven have series touching this area pending, > and there are a couple consumer in flux too - the hmm tree already > conflicts with this series, and I have potential dma changes on top of > the consumers in Thomas and Steven's series, so we'll probably need a > git tree similar to the hmm one to synchronize these updates. I'd be willing to just merge this now, if that helps. The conversion is mechanical, and my only slight worry would be that at least for my original patch I didn't build-test the (few) non-x86 architecture-specific cases. But I did end up looking at them fairly closely (basically using some grep/sed scripts to see that the conversions I did matched the same patterns). And your changes look like obvious improvements too where any mistake would have been caught by the compiler. So I'm not all that worried from a functionality standpoint, and if this will help the next merge window, I'll happily pull now. Linus