Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932537AbbFIVNM (ORCPT ); Tue, 9 Jun 2015 17:13:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34094 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932529AbbFIVNB (ORCPT ); Tue, 9 Jun 2015 17:13:01 -0400 Date: Tue, 9 Jun 2015 14:13:00 -0700 From: Andrew Morton To: Calvin Owens Cc: Alexey Dobriyan , "Eric W. Biederman" , Al Viro , Miklos Szeredi , Zefan Li , Oleg Nesterov , Joe Perches , David Howells , , , Andy Lutomirski , Cyrill Gorcunov , Kees Cook , "Kirill A. Shutemov" Subject: Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable Message-Id: <20150609141300.b80eeec15b2c379146816c06@linux-foundation.org> In-Reply-To: <1433821173-2804704-1-git-send-email-calvinowens@fb.com> References: <1432005006-3428-1-git-send-email-calvinowens@fb.com> <1433821173-2804704-1-git-send-email-calvinowens@fb.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 29 On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > is only exposed if CONFIG_CHECKPOINT_RESTORE is set. > > This interface very useful because it allows userspace to stat() > deleted files that are still mapped by some process, which enables a > much quicker and more accurate answer to the question "How much disk > space is being consumed by files that are deleted but still mapped?" > than is currently possible. Why is that information useful? I could perhaps think of some use for "How much disk space is being consumed by files that are deleted but still open", but to count the mmapped-then-unlinked files while excluding the opened-then-unlinked files seems damned peculiar. IOW, this changelog failed to explain the value of the patch. Bad changelog! Please sell it to us. Preferably with real-world use cases. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/