kernel-fxtec-pro1x/fs/xfs/support
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
..
debug.c [XFS] avoid memory allocations in xfs_fs_vcmn_err 2008-12-22 18:02:01 +11:00
debug.h [XFS] avoid memory allocations in xfs_fs_vcmn_err 2008-12-22 18:02:01 +11:00
ktrace.c [XFS] Remove unused variable in ktrace_free() 2008-12-05 13:31:51 +11:00
ktrace.h [XFS] Use power-of-2 sized buffers to reduce overhead 2008-04-18 11:40:04 +10:00
uuid.c [XFS] streamline init/exit path 2008-07-28 16:59:25 +10:00
uuid.h [XFS] streamline init/exit path 2008-07-28 16:59:25 +10:00