From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <418cdf6e3ef9aeb455173e5a7dbc2084@collyer.net> From: Geoff Collyer To: 9fans@cse.psu.edu Subject: Re: [9fans] how to avoid a memset() optimization In-Reply-To: <69de78bb2dcc84f725ceea4b529c1ec4@9fs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 6 Jan 2003 03:15:56 -0800 Topicbox-Message-UUID: 3bb94880-eacb-11e9-9e20-41e7f4b1d025 One can find examples of this technique in /sys/src/fs. Here's some clean-up code from the implementation of wstat at /sys/src/fs/port/9p1.c:1499,1504: if(p) putbuf(p); if(p1) putbuf(p1); if(f) qunlock(f);