From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2092FCA9EC4 for ; Wed, 30 Oct 2019 06:50:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D94F620874 for ; Wed, 30 Oct 2019 06:50:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=shutemov-name.20150623.gappssmtp.com header.i=@shutemov-name.20150623.gappssmtp.com header.b="iLvr36c6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D94F620874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7586E6B0003; Wed, 30 Oct 2019 02:50:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 709106B0006; Wed, 30 Oct 2019 02:50:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F7236B0007; Wed, 30 Oct 2019 02:50:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0202.hostedemail.com [216.40.44.202]) by kanga.kvack.org (Postfix) with ESMTP id 393276B0003 for ; Wed, 30 Oct 2019 02:50:42 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 9E6688249980 for ; Wed, 30 Oct 2019 06:50:41 +0000 (UTC) X-FDA: 76099527882.10.hand76_23180ca5e9c07 X-HE-Tag: hand76_23180ca5e9c07 X-Filterd-Recvd-Size: 4090 Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Wed, 30 Oct 2019 06:50:41 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id c4so1314136lja.11 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=Bf03tfSqLPsgGfaaNQpcsbHBF9CG8ULTBS3tmGnD80cxm4F/+SK6McAKqOS8bQ6knf mnoK6k5mvDG44wTR05DRbRReMyuI51eyTcnpWKf07EufsbL1jr8wWRaUCXiJdn5a06UR tuFSd2ILvFyEPb2JXjPJGw7FJ3s0kIl1xA3DtStXtYh6jdxQRpdJx6XJXUCxIZ6ahdR3 xQs5txQEicNzsOGK28IZ9YemiyldSyflk6U6MQ4SKkiQYKZuhLqdNvx5xAR8CwdIqH1L FWnGQULp8rP/KuoLXk4f1Of2bntPksgFESCjUT9EzHfid6FFmSS2QyEbY9wllmRrJEzD XjRw== X-Gm-Message-State: APjAAAWfEy/SUzPE6ysVW7RRqZNWjIB0RUOM14tWYFlCL8wo5Bos5p2c z1mGp4vsSb9uf2t9i200z7DwRQ== X-Google-Smtp-Source: APXvYqyogKk2T+hF/rDbEusxizB/QjtNb9b5jF9FBYmoPBYmHE2zvO/6BoiLQKZ0srYAn7ZqDqdzNA== 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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