From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753028AbaFLU7d (ORCPT ); Thu, 12 Jun 2014 16:59:33 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:55516 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbaFLU7b (ORCPT ); Thu, 12 Jun 2014 16:59:31 -0400 Date: Thu, 12 Jun 2014 13:59:28 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Heiko Carstens cc: Ian Kent , Andrew Morton , Christoph Hellwig , KAMEZAWA Hiroyuki , Andrea Righi , Eric Dumazet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Hendrik Brueckner , Thorsten Diehl , "Elliott, Robert (Server Storage)" , Al Viro Subject: Re: [PATCH 2/2] fs: proc/stat: use usual seq_file ops rather than single_open In-Reply-To: <20140612072741.GA4296@osiris> Message-ID: References: <20140521122521.GB7471@osiris> <20140521143229.GA32011@infradead.org> <20140528085841.GA4219@osiris> <20140528090153.GC4219@osiris> <20140528153704.b2a3f46dc39ebf8f681d528a@linux-foundation.org> <1402301519.2775.47.camel@perseus.fritz.box> <20140611124301.GC4296@osiris> <1402554262.2642.16.camel@perseus.fritz.box> <20140612072741.GA4296@osiris> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Jun 2014, Heiko Carstens wrote: > Yes, that doesn't make any sense. I wrote the patch together in a hurry and > didn't think much about it. > So below is the what I think most simple conversion to a vmalloc fallback > approach for seq files. However the question remains if this seems to be an > acceptable approach at all... > I think the approach is fine. We do now have a generic kvfree() function defined in mm.h that will handle the freeing, though, determined by is_vmalloc_addr() so seq_free() is no longer necessary.