[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200804220433.04030.vda.linux@googlemail.com>
Date: Tue, 22 Apr 2008 04:33:03 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: David Chinner <dgc@....com>
Cc: Eric Sandeen <sandeen@...deen.net>, Adrian Bunk <bunk@...nel.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Shawn Bohrer <shawn.bohrer@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Arjan van de Ven <arjan@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [PATCH] xfs: do not pass size into kmem_free, it's unused
Hi David,
> Patches are welcome - I'd be over the moon if any of the known 4k
> stack advocates sent a stack reduction patch for XFS, but it seems
> that actually trying to fix the problems is much harder than
> resending a one line patch every few months....
kmem_free() function takes (ptr, size) arguments but doesn't
actually use second one.
This patch removes size argument from all callsites.
Code size difference on 32-bit x86:
# size */fs/xfs/xfs.o
text data bss dec hex filename
391271 2748 1708 395727 609cf linux-2.6-xfs0-TEST/fs/xfs/xfs.o
390739 2748 1708 395195 607bb linux-2.6-xfs1-TEST/fs/xfs/xfs.o
Compile-tested only.
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "xfs-kmem_free-remove_unused_param.patch" of type "text/x-diff" (28393 bytes)
Powered by blists - more mailing lists