Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp67262pxu; Tue, 24 Nov 2020 19:01:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+5UIHZevWJlEBAbd/shV4EUEY9PSlk9GOBIDswbCuyy0sOpf/L4exH1x+YMT0gtjsfc6D X-Received: by 2002:a50:9fc1:: with SMTP id c59mr1445239edf.59.1606273289132; Tue, 24 Nov 2020 19:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606273289; cv=none; d=google.com; s=arc-20160816; b=vxVAO/AspWVXUG2qqHjiNEaoLpJ/i8Zdw7/gciVr4lFhZ3InugEjs5o7R5AJ2I18sL kSGJTSa92IPWrLR8Qf71TgofeZLP1+59ekNThylmUGFPER3fMG9uEnBTvB2aNUhGCEO5 yjcoYaEnmdGhA6uS172Ua8biXFYembXXrxR2Pcw8v6n55b2RVNYaH/+zSmYWnUY3Pnbp e7unowkiruU5ZoVdTVo4F8KpzpuVurOYhDUKfvEUEKE5VVMQodb8IJZR+G6fdYfGLra0 aCe+JAj4bJHa2Mk8lyXwNbpMi+P2YbWUxcsBHes4O/PUOZ3ibZKJEW2B3pC30bj4VM08 JxAw== 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=+FWpHbem/CPK/Y2WEWVDIbPrtpce00d3aqKaeRn35jw=; b=DLj9XTFOc8oZoOPsIIdAW5Uzy/AaHrOVuCqGJlpYpxrzlkqKrJf6HDmzw/PXbCiwkZ XTSp4BqUhm+Rp6irSTWhiL67gJwthf310wqVpm/pCQ8kMD7dIQO7X+f/q84zyYrzzPQp jBG/gXfV6LIp+yWfugqWsE4iZY3OIHc62yLZnw+OtAxlj7bYt+vWSGrC7RKH++bUNuxb k2lVn+l4dcWqy58nTC1qTuOligDsVk9pQ+lIqZH8VVDrqyemXSQhgVl68rWpIrQvPwAb mrprxO/um0DFZLSE/J5+ch9PtwCFi/FXQhs3ZIxcayoyXVKbyROoo1ew09U5Ja51rbAk 41VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="u3ik/jOX"; 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 u18si511630ejt.95.2020.11.24.19.01.06; Tue, 24 Nov 2020 19:01:29 -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="u3ik/jOX"; 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 S1727136AbgKYC4q (ORCPT + 99 others); Tue, 24 Nov 2020 21:56:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbgKYC4q (ORCPT ); Tue, 24 Nov 2020 21:56:46 -0500 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4BFC0613D4 for ; Tue, 24 Nov 2020 18:56:46 -0800 (PST) Received: by mail-ot1-x341.google.com with SMTP id f16so902004otl.11 for ; Tue, 24 Nov 2020 18:56:46 -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=+FWpHbem/CPK/Y2WEWVDIbPrtpce00d3aqKaeRn35jw=; b=u3ik/jOXlZPtuxZsymmgfKUaDyjjoSfE2RNE/6etm2mObkDL0KcbpGpsN3W0qUdmtN xxEiEPwiifMvSuQzP0luk3QNSRu99ftZMDeEsmLWWCSKYKWzrKqYM28K9URkcbKsQXEY Z8xkRxhzfSFYmR0JpOar1wKSuCWytUXJX8dTjXkRcHVjvZf8xjGW5PY4d5I5EDfziCTe JbSyEYifGpWuB2Qlux+LoD2IfjNipZpPKE4UuGRd6KVWK8/dP4neO1QXOp1h338gfh3g o0SqbxmUI9NY0sxppH7O/cS8kTG4jbViat5ED8qweuXWlCvuZX0yyG0Tdg6OdW4v5iuD swyQ== 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=+FWpHbem/CPK/Y2WEWVDIbPrtpce00d3aqKaeRn35jw=; b=SkYttQ6FS8rhtbhB5ltXyX/86lb3Q/fAcZCtbuWegsuJ3DbenF71ZkH5z7XwYnsL5s 4vq2uWQ3dQyWNHr1WYTpSywxVE28WhC0Eus49GGAZA30t7Rd0a5SaSkUBkb2VZvos0AB uTnmE+mECCFc7SLQ7L8FfTycArpgQLhC0R8kTqSsm2zTj7GnSv/XAwwbTmWH4HnRiJj7 +4HZMzkcWyi6uSo2tBUGkLJFAG6J/3PxxzjiHLdYb7ox3uHsqsTad2upb/yK5uHEuKPT NY8S3N4Fjk6AvAxDtbK1xyEZu0nb5RcR0KRYQdPsgcoYodWwWVGtgP38n9yI5xwCaHSS FUlw== X-Gm-Message-State: AOAM53311I3RzRUpjPI16/hIK7qksfgbkKKSuNdi7J5jspjeajyWAlIt JsV0V7HKWG6MaPN0JYt/MHymXQ== X-Received: by 2002:a9d:72dc:: with SMTP id d28mr1362880otk.110.1606273005462; Tue, 24 Nov 2020 18:56:45 -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 19sm531313oth.63.2020.11.24.18.56.43 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Tue, 24 Nov 2020 18:56:44 -0800 (PST) Date: Tue, 24 Nov 2020 18:56:31 -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: 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 Tue, 24 Nov 2020, Hugh Dickins wrote: > 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: s/12/16/ > 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 >