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=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 A15F5C432C0 for ; Fri, 22 Nov 2019 23:59:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5DCEC20708 for ; Fri, 22 Nov 2019 23:59:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X6nMM/vl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DCEC20708 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EE0016B0534; Fri, 22 Nov 2019 18:59:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E902C6B0535; Fri, 22 Nov 2019 18:59:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DCD256B0536; Fri, 22 Nov 2019 18:59:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0186.hostedemail.com [216.40.44.186]) by kanga.kvack.org (Postfix) with ESMTP id C78B06B0534 for ; Fri, 22 Nov 2019 18:59:30 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 7C5018249980 for ; Fri, 22 Nov 2019 23:59:30 +0000 (UTC) X-FDA: 76185582900.22.camp95_18c0c84f37a1b X-HE-Tag: camp95_18c0c84f37a1b X-Filterd-Recvd-Size: 4146 Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Fri, 22 Nov 2019 23:59:29 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id i11so10048969iol.13 for ; Fri, 22 Nov 2019 15:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=foB4NLZVZpZHpEP+Jauf8VZD20bjVJasgM3S94B+BBs=; b=X6nMM/vlSIJvr2rQybFVo45ZCgO5wPCt1i501De4QJ38e+Qw9Wfcn6S964E76rZ5KF frkvASOl1adlZxqdpgbEMc+spswWqJQVXjEVQ4xYXLoxF8HQfIJBAh8rg8KHC3rqRRMK 0u/HD+Pg63QEocPelHZu/SjSblAGIG+ag7+BdfFJRIyK1tT+sv0gSFa+FKKkkrcyU0IQ wgtONpQEgTGJhNlT7iQoUqIySotOVmas9AjxT+TJziw7x/BLwzLjrAQsCXNFGuvcxIxp xlvYTux9FepMtnIPGoJg8WAX/g1ILkZu5CgqIHHeIsyZmnxBw+35uMtVDbLRDFDo1ygs MLKA== 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=foB4NLZVZpZHpEP+Jauf8VZD20bjVJasgM3S94B+BBs=; b=CZVf+24iakTLi28TJjS1VtuBoBDudhJFBEjwOa4WLCOFa7DDX8I6Cj/7+p9XW2od2X zajEyOj+9KBaryhXuMGyN3fRIXHrrLY6dMu0VOxM/0wulkaQxJdOeyLMelF4RvGELVW8 W1sQG0dADKsMnKr1x92m4r1WF+E/Iej+l7t0kAItuQTzeCvSgfbgk6+vHLRxeevn/SBt 4saIaGVUjZ7GojL+PvV/LtsPaK+1jLSu/Br5oHeGsyev75u3VwpLx2jQ/oA6/LwHQtPy szWgfKnhjf7ikZoQ0ujg5K+xeW7Byi43oNm2WV0AeewCqLAocTT5Shj0Jhe4oSbvGNQO dq3A== X-Gm-Message-State: APjAAAUEAHB54I9K724wjActoGXuOGoFxOiLCm7+/uRAo+qO3RvM8UWr tLcbhSOc6Mp5vmP/DyAvxTn9cmDDS8c5okwlsy4dTO76LaM= X-Google-Smtp-Source: APXvYqxEYuoR4iMswSx1CzGapDzROgybF2PYu6v6V5p2Czm4oC+E00ZzOCe0P14r8QIPjTBrJxub730kaFAOaD4G31A= X-Received: by 2002:a6b:7e0b:: with SMTP id i11mr15044163iom.245.1574467169363; Fri, 22 Nov 2019 15:59:29 -0800 (PST) MIME-Version: 1.0 References: <157225677483.3442.4227193290486305330.stgit@buzz> <20191028124222.ld6u3dhhujfqcn7w@box> <20191028125702.xdfbs7rqhm3wer5t@box> <640bbe51-706b-8d9f-4abc-5f184de6a701@redhat.com> In-Reply-To: <640bbe51-706b-8d9f-4abc-5f184de6a701@redhat.com> From: =?UTF-8?Q?Andreas_Gr=C3=BCnbacher?= Date: Sat, 23 Nov 2019 00:59:18 +0100 Message-ID: Subject: Re: [PATCH] mm/filemap: do not allocate cache pages beyond end of file at read To: Steven Whitehouse Cc: Linus Torvalds , Konstantin Khlebnikov , "Kirill A. Shutemov" , Linux-MM , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , Alexander Viro , Johannes Weiner , "cluster-devel@redhat.com" , Ronnie Sahlberg , Steve French , Andreas Gruenbacher , Bob Peterson Content-Type: text/plain; charset="UTF-8" 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: Hi, Am Do., 31. Okt. 2019 um 12:43 Uhr schrieb Steven Whitehouse : > Andreas, Bob, have I missed anything here? I've looked into this a bit, and it seems that there's a reasonable way to get rid of the lock taking in ->readpage and ->readpages without a lot of code duplication. My proposal for that consists of multiple patches, so I've posted it separately: https://lore.kernel.org/linux-fsdevel/20191122235324.17245-1-agruenba@redhat.com/T/#t Thanks, Andreas