Christoph Hellwig efc557570d [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 <a.beregalov@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
2008-12-22 18:02:01 +11:00
..
2008-11-13 13:22:34 -06:00
2008-11-06 15:41:22 -08:00
2008-11-01 09:49:46 -07:00
2008-12-01 19:55:25 -08:00
2008-12-16 18:26:16 -08:00
2008-11-18 15:08:56 +01:00
2008-12-10 08:01:54 -08:00
2008-11-27 17:38:28 +01:00
2008-12-04 04:22:57 -05:00
2008-11-27 17:38:28 +01:00
2008-12-09 19:36:38 -08:00
2008-10-30 11:38:45 -07:00
2008-11-19 18:49:59 -08:00
2008-11-12 17:17:17 -08:00
2008-11-01 09:49:46 -07:00
2008-10-30 11:38:45 -07:00