Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp64324pxu; Tue, 24 Nov 2020 18:54:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhEyu3RZlWqNvBYOOPb1TTAbsenUH1w4b9/T+1ahgr0gXVCzd3QigHnOkSZWZ67VUPPSzp X-Received: by 2002:a05:6402:21c7:: with SMTP id bi7mr1598529edb.54.1606272893972; Tue, 24 Nov 2020 18:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606272893; cv=none; d=google.com; s=arc-20160816; b=qBSKc6iMYl8so3zYfx6kqgptUYZkceUKFhp/QzNOsGzHwzChPL5r7mgyhJ6nKB5xH8 IeUVCPzBQM+R5cE6AVTElGM3AfW95+488CQEqcAsp8BjxNAdEiOiofjszlscEqqbGjcA Vp30MiLU7aymTX53SkPZIFyPfodquHq2XPpleav3QdKG2QQQUx31N+ku+c/lSUm9Yzb7 82PIzKGnjFY1UWeShbhKHEWDf/V+IYXofAD4Ghnr3kQFNKdUoyIf9aMyFMWih9kakjbS fCraroWxMrBV+dVwnCZjOgK88rUv2JJAym4cYm8yHeoZelS3erajtOQS7aS2mATPiD0d 8Wvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=pZ7yTwzr1UVwX/XHITOiHT7kma/jH9EnOU7ZqW6Z6RM=; b=hS4+XsxH6ZcUrs57nav8KB9P0mekOKT+VfrKQ+o943DzisJGPDv41KsNlynV62krl7 VWy00vfPgtAoWUsVSzqY78W2FJM+esfM9KmYUaUDggZfE5qP8wEI6UroWWaMGpoDuKNV Dd4tmITbU/G6xBCFvuPqGod0oXtdyf4mskCAfiIfxmDHOKXpoZfIOV6GTEYzqsh4D4Vj XZzamgfVfTzsMtXLvG7ZlKTUGKsbSfw6tjK2/XPRCIKMDcZ+ZwazZUey2CswTaEs3vdS wqK+wKYxt0Sc999luFEJlNjGr68KyrHqsG48C2RY6VsYe+8XwCzHmpb9RoEyliRX7lvQ VudQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YNeYz6LI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si440702eds.497.2020.11.24.18.54.31; Tue, 24 Nov 2020 18:54:53 -0800 (PST) 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=@google.com header.s=20161025 header.b=YNeYz6LI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgKYCvB (ORCPT + 99 others); Tue, 24 Nov 2020 21:51:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbgKYCvB (ORCPT ); Tue, 24 Nov 2020 21:51:01 -0500 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F68FC0613D4 for ; Tue, 24 Nov 2020 18:50:48 -0800 (PST) Received: by mail-oo1-xc42.google.com with SMTP id t10so155063oon.4 for ; Tue, 24 Nov 2020 18:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=pZ7yTwzr1UVwX/XHITOiHT7kma/jH9EnOU7ZqW6Z6RM=; b=YNeYz6LI+AghX3JPBap3pd8R8Wf7R6RrNw+OuCNiN3m2v7471fhM7exG1z8l5JdDZ/ 8+rsMtZGSKl2fFNdrgvHD4gOjGJUyJsuRrOudh6i1n3gUvyMRrXpvcyWiy9vIuQDRZEX ewvy4j+tDRAv3H1CXZeToi1EmLi4/OKLrEf4Iq70Lqd8bpsWgntjXnByE8058UnRXadh 6Fdsy/f9CENebsk93jgPNyv6ygZ1/HR941IUBWEKpDrh3buU/jGVO4ZhZM9fWWw+D6rx Yu7TW7AiuFf3KAbyEoND/GNS5mycj2rTkSnVOBa0YxKUqoFiIFwwyC3E73VvdwZnHKdw UJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=pZ7yTwzr1UVwX/XHITOiHT7kma/jH9EnOU7ZqW6Z6RM=; b=GvKVTzpHvKFP/Scff8I2l3Al+g9P3+7wLue0xVZOifj+bXnQmt49dA49ghqkfhAYHo eRiOnBs4Y3ojOpMimst3ln/aH80nieUl115mb8Jxxv/VXcxPbxmL1S0Vl7/I0LUTm5vb xTWeY3aNEOwH2zXy5ZDuQzQEy0wIpCEaaaeuml96idpbxpgPn8B7bjxICa9X49QzJMfj wQoL86bVXxQloewVGKG4lXfvnipS0PVEyQ6d8j4whV+tzh04TtyaHFW4mY8QFfQqVDja x4vmNynMOqHs0FBN1IvoR1b0MDQgbMG71IOgBFTiHst4oiXtiCS+2Q83lgzqSdgL821L th+g== X-Gm-Message-State: AOAM5327+Vrz5BoP2WiFnmLP7YMzfQXT1p/uTX025Puk2l93W1GhWRQu PnX4l29tCSl4P3zcR5XzFuhOVA== X-Received: by 2002:a4a:764e:: with SMTP id w14mr1208367ooe.56.1606272647591; Tue, 24 Nov 2020 18:50:47 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id l7sm522243oth.73.2020.11.24.18.50.45 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Tue, 24 Nov 2020 18:50:46 -0800 (PST) Date: Tue, 24 Nov 2020 18:50:32 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Matthew Wilcox cc: Hugh Dickins , Andrew Morton , Jan Kara , William Kucharski , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP In-Reply-To: <20201125023234.GH4327@casper.infradead.org> Message-ID: References: <20201112212641.27837-1-willy@infradead.org> <20201117153947.GL29991@casper.infradead.org> <20201117191513.GV29991@casper.infradead.org> <20201117234302.GC29991@casper.infradead.org> <20201125023234.GH4327@casper.infradead.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Nov 2020, Matthew Wilcox wrote: > On Tue, Nov 17, 2020 at 11:43:02PM +0000, Matthew Wilcox wrote: > > On Tue, Nov 17, 2020 at 07:15:13PM +0000, Matthew Wilcox wrote: > > > I find both of these functions exceptionally confusing. Does this > > > make it easier to understand? > > > > Never mind, this is buggy. I'll send something better tomorrow. > > That took a week, not a day. *sigh*. At least this is shorter. Thanks, I'll give it a try (along with the other 4, on top of the 12: maybe on -rc5, maybe on today's mmotm, I'll decide that later). Shorter you say, that's good: I was disheartened by the way it got more complicated, after your initial truncate_inode_partial_page() neatness. Any hints on what was wrong with my simple fixup to that? (But I didn't spend any more time trying to prove or disprove it.) Hugh