Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp510109ybx; Tue, 29 Oct 2019 23:52:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFc4wJYDuWBL/IdNvAJAVtApgQy6OnupeHZCiq16LBOy0UoIEjpXPZeOFXILs4pd1tkP6q X-Received: by 2002:a05:6402:797:: with SMTP id d23mr19269899edy.83.1572418333279; Tue, 29 Oct 2019 23:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572418333; cv=none; d=google.com; s=arc-20160816; b=KjJxYiw4ybuk8ho//aun/pfV29AdJ/GafiP5KNXnZvB5Bsf39rQlZDiqij0RVDgZdl kO8TNmciFFadR5iAtN6Rm1JxfzRfahx+bHGXDc4hsmsZdJ5Qsh9+rNmCckzlztimcN7A tHHafg31VbRruq4Ixy81sdLcvHJBm/3KHHkqdDi1EjEAWcoUkMgODOOsEutvPoh3+d4l Qji9fqhelzOovaTPxZSfzAAR/PJfl/ctt1h9kzvwNCn9+Tt3VY+2Bbez/v4DCakzWT8u 6SvA6IDDTRTLUMovu7EptyvV462lVqIFj3l0fvrmI4398N7sQesf9keWth1FXFX5S/fa W0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OG8TB5Z3OxSF2gHsUrhZBaXhf5Zgk82Z4whv67njgvw=; b=QhL9nUpI3rRfGiKaIPHJ/dHj8YteWTxVu/C47uw1a5ALH7JsTSzO10JX5V8Uqt9cTS LHA/gTqcFccoE+ywAKnRuBCKP5rfcaHdu/SEJBFZmKJf123X9MUKXFpSUIjIhYTbOlSX keQzjXAvBG0YVyT7+rNs62i1c7Tb1eWdBvfG9ZbXMGzGuzDpuSH4H5gWh757RCgTq5MS yAZNWd0rcL0r1tmkizCtzVsf9pJsto9sGjfM0vxo+dGGlHgRNP15qrdc5H5/GCdY6R8r ay9W6rvvTvP7+11p8sKT4Xtkdtn7RYRPK8PXUg8SDa5BCAAP8NaYptcxvVRmPD1m0tAS thXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=iLvr36c6; 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 o8si1038866edi.34.2019.10.29.23.51.50; Tue, 29 Oct 2019 23:52:13 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=iLvr36c6; 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 S1727559AbfJ3Gum (ORCPT + 99 others); Wed, 30 Oct 2019 02:50:42 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40401 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfJ3Gul (ORCPT ); Wed, 30 Oct 2019 02:50:41 -0400 Received: by mail-lj1-f193.google.com with SMTP id u22so1345507lji.7 for ; Tue, 29 Oct 2019 23:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OG8TB5Z3OxSF2gHsUrhZBaXhf5Zgk82Z4whv67njgvw=; b=iLvr36c6OKkhrzfRc9P24L3/yvyhg95cNQYYiDkqVk0XocMpM/RrtgKRStDaUTD3hy t2Z0iDKBFn68feV/JPUoOeIYNM+dK/jviWrlQ3W7ulycbYjsHU+hCuO79lVCfrOfbTop cLCG/NjL2OtAkcfDNYvkxpg6oKlzy09qag8StQ1AqeV0MbViYA6fvhdaco9LZU6ImE0Y 67+/dTZGp153XQPFxmdJtAEHsJXq+6OL+P18Khdb4abA1itzfm8Cj7nWJrF/TKDbmpY8 BTg7htB/XoXzxNe162ot9/hSu5WFDQkQbeF/B4vzWpL57AnMPUDdq8rbY4PXirZ9wer7 bKsg== 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OG8TB5Z3OxSF2gHsUrhZBaXhf5Zgk82Z4whv67njgvw=; b=TQznQH4VZfFPCXYur6fKKmmlnF5prAZalIaMOTWV3BKRejJIQ8YC2b+CU41yLC3l9E cZTsUI1VKz+FZVstv4egGNxIoAm7kabNpTG5t7bVqSEA1C7nJvYlSWPlxxiLfydmL+e6 cU4zhXZ8rRvHmst94uuMi2xzFhO0FIYZ7VgI/BX5ZuKVpyj6QNE0l/1Epo0kuf8BVISL TdNSGaTC8GsXs/AsH+pypIQ33qPIRsEDKPKc0Sxg34oLz1LWocGZ1eDkDCfu7Bra8MXc OSu5nZqqzpx+U5Tt1QaetI7MGp+5RsdiBGkz2zZ5iOb5ogtTdaGYUEuNZHVDImI3kTkp hQaQ== X-Gm-Message-State: APjAAAVkn0GiQ7EVIa4TNtIgQD47JD38MTOhNZ+2eT/LNbBl8y7hhGnh ZNzmu1Fj8hYDDe3pqKVCkkRyEuNF1+I= X-Received: by 2002:a2e:151c:: with SMTP id s28mr5291987ljd.70.1572418239710; Tue, 29 Oct 2019 23:50:39 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id n5sm640209ljh.54.2019.10.29.23.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 23:50:38 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id D87181003C9; Wed, 30 Oct 2019 09:50:37 +0300 (+03) Date: Wed, 30 Oct 2019 09:50:37 +0300 From: "Kirill A. Shutemov" To: Linus Torvalds Cc: Konstantin Khlebnikov , Linux-MM , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , Alexander Viro , Johannes Weiner , Steven Whitehouse Subject: Re: [PATCH] mm/filemap: do not allocate cache pages beyond end of file at read Message-ID: <20191030065037.o3q6usc5vo3woif6@box> References: <157225677483.3442.4227193290486305330.stgit@buzz> <20191028124222.ld6u3dhhujfqcn7w@box> <20191028125702.xdfbs7rqhm3wer5t@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 05:52:05PM +0100, Linus Torvalds wrote: > But NFS, for example, has open/close consistency, so the metadata > revalidation is at open() time, not at read time. I don't know much about filesystems, but can't size of file change after the open() under network filesystem? Revlidation on read looks like an requirement anyway, no? -- Kirill A. Shutemov