Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 16 Oct 2001 00:10:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 16 Oct 2001 00:10:06 -0400 Received: from samba.sourceforge.net ([198.186.203.85]:13328 "HELO lists.samba.org") by vger.kernel.org with SMTP id ; Tue, 16 Oct 2001 00:09:56 -0400 Date: Tue, 16 Oct 2001 14:05:39 +1000 From: Anton Blanchard To: Alexander Viro Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [CFT][PATCH] large /proc/mounts and friends Message-ID: <20011016140539.A2426@krispykreme> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Folks, patch below adds a new way to handle large files on procfs. > I've done that for /proc/mounts and /proc/ksyms, but the same trick can > be pulled for anything else. The basic idea: if file consists of records > generated by some sequence of objects, we can just describe an iterator and > use precanned functions to turn it into a file. That (and helpers for > formatting) is done in fs/seq_file.c and include/linux/seq_file.h. Ahh good I was just going to fix /proc/stat and /proc/interrupts; given enough interrupts and cpus they both overflow 1 page and cause random memory corruption. Anton - 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/