From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 6/13: eCryptfs] Superblock operations Date: Thu, 04 May 2006 22:40:49 +0100 Message-ID: <23457.1146778849@warthog.cambridge.redhat.com> References: <84144f020605040737k316fd5abva4476da69a65c084@mail.gmail.com> <20060504031755.GA28257@hellewell.homeip.net> <20060504033829.GE28613@hellewell.homeip.net> Cc: "Phillip Hellewell" , "Andrew Morton" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@ftp.linux.org.uk, mike@halcrow.us, mhalcrow@us.ibm.com, mcthomps@us.ibm.com, toml@us.ibm.com, yoder1@us.ibm.com, "James Morris" , "Stephen C. Tweedie" , "Erez Zadok" , "David Howells" Return-path: Received: from mx1.redhat.com ([66.187.233.31]:50110 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1751338AbWEDVla (ORCPT ); Thu, 4 May 2006 17:41:30 -0400 In-Reply-To: <84144f020605040737k316fd5abva4476da69a65c084@mail.gmail.com> To: "Pekka Enberg" Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Pekka Enberg wrote: > > + ecryptfs_printk(KERN_DEBUG, "Enter; inode = [%p]\n", inode); > > + crypt_stat = &(ECRYPTFS_INODE_TO_PRIVATE(inode))->crypt_stat; > > + ecryptfs_destruct_crypt_stat(crypt_stat); > > + kmem_cache_free(ecryptfs_inode_info_cache, > > + ECRYPTFS_INODE_TO_PRIVATE(inode)); > > Better to introduce a local variable for CRYPTFS_INODE_TO_PRIVATE. > More readable and smaller kernel text that way. But it may use more stack, which is a much more limited resource, so what you suggest is not necessarily the best thing to do. David