From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262477AbVF2HnV (ORCPT ); Wed, 29 Jun 2005 03:43:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262474AbVF2Hkk (ORCPT ); Wed, 29 Jun 2005 03:40:40 -0400 Received: from main.gmane.org ([80.91.229.2]:18907 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S262481AbVF2HkD (ORCPT ); Wed, 29 Jun 2005 03:40:03 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Matthias Urlichs Subject: Re: [PATCH 2/3] freevxfs: minor cleanups Date: Wed, 29 Jun 2005 09:39:30 +0200 Organization: {M:U} IT Consulting Message-ID: References: <20050628163114.6594e1e1.akpm@osdl.org> <20050629070729.GB16850@infradead.org> <20050629001717.65fb272c.akpm@osdl.org> <20050629072115.GA17261@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: run.smurf.noris.de User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) X-Face: '&-&kxR\8+Pqalw@VzN\p?]]eIYwRDxvrwEM On Wed, Jun 29, 2005 at 12:17:17AM -0700, Andrew Morton wrote: >> Come to think of it, it could be a problem if the comnpiler was silly and >> built an entire temporary on the stack and the copied it over. Hopefull it >> won't do that. > > that patch is fine except for the second to last patch which should be > droped. If you do that, you also need to drop the third-to-last patch ... Personally, I think struct assignments are fine if the compiler does them right. As this example shows, at least they avoid the I-forgot-to-zero-the-struct problem. ;-) -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - First Rule of History: History doesn't repeat itself -- historians merely repeat each other.