Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030567AbVKDAYN (ORCPT ); Thu, 3 Nov 2005 19:24:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030568AbVKDAYM (ORCPT ); Thu, 3 Nov 2005 19:24:12 -0500 Received: from mx1.suse.de ([195.135.220.2]:31469 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1030567AbVKDAYL (ORCPT ); Thu, 3 Nov 2005 19:24:11 -0500 From: Andreas Schwab To: James Morris Cc: Phillip Hellewell , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, mike@halcrow.us, mhalcrow@us.ibm.com, mcthomps@us.ibm.com, yoder1@us.ibm.com Subject: Re: [PATCH 9/12: eCryptfs] Inode operations References: <20051103033220.GD2772@sshock.rn.byu.edu> <20051103035411.GI3005@sshock.rn.byu.edu> X-Yow: I'm having an EMOTIONAL OUTBURST!! But, uh, WHY is there a WAFFLE in my PAJAMA POCKET?? Date: Fri, 04 Nov 2005 01:24:07 +0100 In-Reply-To: (James Morris's message of "Thu, 3 Nov 2005 18:51:25 -0500 (EST)") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 972 Lines: 29 James Morris writes: > On Wed, 2 Nov 2005, Phillip Hellewell wrote: > >> +static int grow_file(struct dentry *ecryptfs_dentry, struct file *lower_file, >> + struct inode *inode, struct inode *lower_inode) >> +{ >> + int rc = 0; >> + struct file fake_file; >> + memset(&fake_file, 0, sizeof(fake_file)); > > > You don't need these initializations, bss is always initialized to zero > in this environment. Automatic variables are not related to the bss segment. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - 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/