From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id mB4FTc4I012076 for ; Thu, 4 Dec 2008 09:29:39 -0600 Message-ID: <4937F75F.8070302@sandeen.net> Date: Thu, 04 Dec 2008 09:29:35 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH] Remove unused variable in ktrace_free() References: <4937765D.2030601@sgi.com> In-Reply-To: <4937765D.2030601@sgi.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: lachlan@sgi.com Cc: xfs-oss Lachlan McIlroy wrote: > entries_size is probably left over from when we used to pass the > size to kmem_free(). Reviewed-by: Eric Sandeen > --- xfs-fix.orig/fs/xfs/support/ktrace.c > +++ xfs-fix/fs/xfs/support/ktrace.c > @@ -113,21 +113,16 @@ ktrace_alloc(int nentries, unsigned int > void > ktrace_free(ktrace_t *ktp) > { > - int entries_size; > - > if (ktp == (ktrace_t *)NULL) > return; > > /* > * Special treatment for the Vnode trace buffer. > */ > - if (ktp->kt_nentries == ktrace_zentries) { > + if (ktp->kt_nentries == ktrace_zentries) > kmem_zone_free(ktrace_ent_zone, ktp->kt_entries); > - } else { > - entries_size = (int)(ktp->kt_nentries * sizeof(ktrace_entry_t)); > - > + else > kmem_free(ktp->kt_entries); > - } > > kmem_zone_free(ktrace_hdr_zone, ktp); > } > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs