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=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 2721CC3F2CD for ; Tue, 3 Mar 2020 08:34:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 089A820848 for ; Tue, 3 Mar 2020 08:34:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 089A820848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id ADD866B0005; Tue, 3 Mar 2020 03:34:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A8E356B0006; Tue, 3 Mar 2020 03:34:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 97C226B0007; Tue, 3 Mar 2020 03:34:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 803C46B0005 for ; Tue, 3 Mar 2020 03:34:56 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 349551AA90 for ; Tue, 3 Mar 2020 08:34:56 +0000 (UTC) X-FDA: 76553390592.23.actor37_482f30aa45344 X-HE-Tag: actor37_482f30aa45344 X-Filterd-Recvd-Size: 2387 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Tue, 3 Mar 2020 08:34:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 58FC5AE79; Tue, 3 Mar 2020 08:34:52 +0000 (UTC) Subject: Re: [PATCH 0/5] Simplify /proc/$pid/maps implementation To: Matthew Wilcox , linux-fsdevel@vger.kernel.org, Alexey Dobriyan Cc: linux-kernel@vger.kernel.org, "linux-mm@kvack.org" References: <20200229165910.24605-1-willy@infradead.org> From: Vlastimil Babka Message-ID: Date: Tue, 3 Mar 2020 09:34:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200229165910.24605-1-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 2/29/20 5:59 PM, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" Re: subject, it's not only maps, but also smaps, smaps_rollu, numa_maps > Back in 2005, we merged a patch from Akamai that sped up /proc/$pid/maps > by using f_version to stash the user virtual address that we'd just > displayed. That wasn't necessary; we can just use the private *ppos for > the same purpose. There have also been some other odd choices made over > the years that use the seq_file infrastructure in some non-idiomatic ways. > > Tested by using 'dd' with various different 'bs=' parameters to check that > calling ->start, ->stop and ->next at various offsets work as expected. > > Matthew Wilcox (Oracle) (5): > proc: Inline vma_stop into m_stop > proc: remove m_cache_vma > proc: Use ppos instead of m->version > seq_file: Remove m->version > proc: Inline m_next_vma into m_next For all of them: Acked-by: Vlastimil Babka Thanks! > fs/proc/task_mmu.c | 95 +++++++++++++--------------------------- > fs/seq_file.c | 28 ------------ > include/linux/seq_file.h | 1 - > 3 files changed, 31 insertions(+), 93 deletions(-) > > base-commit: d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 >