From: Christoph Hellwig Date: Wed, 17 Dec 2008 17:27:36 +0000 (-0500) Subject: [XFS] avoid memory allocations in xfs_fs_vcmn_err X-Git-Tag: v2.6.29-rc1~552^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc557570dc99b46e46a7be51c3c7402b485e829;p=pandora-kernel.git [XFS] avoid memory allocations in xfs_fs_vcmn_err xfs_fs_vcmn_err can be called under a spinlock, but does a sleeping memory allocation to create buffer for it's internal sprintf. Fortunately it's the only caller of icmn_err, so we can merge the two and have one single static buffer and spinlock protecting it. While we're at it make sure we proper __attribute__ format annotations so that the compiler can detect mismatched format strings. Reported-by: Alexander Beregalov Signed-off-by: Christoph Hellwig Reviewed-by: Eric Sandeen Signed-off-by: Lachlan McIlroy --- Reading git-diff-tree failed