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-04-29 16:07:48 +10:00
2008-12-04 15:39:25 +11:00
2008-08-13 16:22:40 +10:00
2008-12-01 11:37:20 +11:00
2008-07-28 16:58:35 +10:00
2008-12-01 11:29:28 +11:00
2008-02-07 18:14:38 +11:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2008-12-01 11:37:35 +11:00
2008-10-30 17:53:24 +11:00
2008-12-11 13:14:17 +11:00
2008-12-04 15:39:21 +11:00
2008-11-17 17:37:10 +11:00
2008-12-04 15:39:24 +11:00
2008-12-11 13:14:17 +11:00
2008-10-30 17:53:24 +11:00
2008-12-04 15:39:22 +11:00
2008-12-11 13:13:33 +11:00
2008-12-11 13:14:17 +11:00
2008-10-30 16:55:13 +11:00