aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/support/debug.c
AgeCommit message (Collapse)AuthorFilesLines
2009-03-15Fix xfs debug build breakage by pushing xfs_error.h afterFelix Blyakher1-1/+1
xfs_mount.h, which it depends on. Reported-by: Stephen Rothwell <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Alex Elder <[email protected]> Signed-off-by: Felix Blyakher <[email protected]>
2009-03-06xfs: include header files for prototypesHannes Eder1-0/+1
Fix this sparse warnings: fs/xfs/linux-2.6/xfs_ioctl.c:72:1: warning: symbol 'xfs_find_handle' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:249:1: warning: symbol 'xfs_open_by_handle' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:361:1: warning: symbol 'xfs_readlink_by_handle' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:496:1: warning: symbol 'xfs_attrmulti_attr_get' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:525:1: warning: symbol 'xfs_attrmulti_attr_set' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:555:1: warning: symbol 'xfs_attrmulti_attr_remove' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:657:1: warning: symbol 'xfs_ioc_space' was not declared. Should it be static? fs/xfs/linux-2.6/xfs_ioctl.c:1340:1: warning: symbol 'xfs_file_ioctl' was not declared. Should it be static? fs/xfs/support/debug.c:65:1: warning: symbol 'xfs_fs_vcmn_err' was not declared. Should it be static? fs/xfs/support/debug.c:112:1: warning: symbol 'xfs_hex_dump' was not declared. Should it be static? Signed-off-by: Hannes Eder <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Felix Blyakher <[email protected]>
2008-12-22[XFS] avoid memory allocations in xfs_fs_vcmn_errChristoph Hellwig1-5/+32
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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Eric Sandeen <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]>
2008-10-30[XFS] Show buffer address with debug hexdump on corruptionBarry Naujok1-1/+1
SGI-PV: 987246 SGI-Modid: xfs-linux-melb:xfs-kern:32233a Signed-off-by: Barry Naujok <[email protected]> Signed-off-by: Eric Sandeen <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]>
2008-02-07[XFS] lose xfs_hex_dump in favor of print_hex_dumpEric Sandeen1-0/+6
No need for xfs to have its own hex dumping routine now that the kernel has one. SGI-PV: 971186 SGI-Modid: xfs-linux-melb:xfs-kern:29847a Signed-off-by: Eric Sandeen <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]> Signed-off-by: Tim Shimmin <[email protected]>
2008-02-07[XFS] Remove spin.hEric Sandeen1-1/+0
remove spinlock init abstraction macro in spin.h, remove the callers, and remove the file. Move no-op spinlock_destroy to xfs_linux.h Cleanup spinlock locals in xfs_mount.c SGI-PV: 970382 SGI-Modid: xfs-linux-melb:xfs-kern:29751a Signed-off-by: Eric Sandeen <[email protected]> Signed-off-by: Donald Douwsma <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]> Signed-off-by: Tim Shimmin <[email protected]>
2007-05-08[XFS] reducing the number of random number functions.Joe Perches1-17/+0
Patch provided by Joe Perches SGI-PV: 961696 SGI-Modid: xfs-linux-melb:xfs-kern:28209a Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Lachlan McIlroy <[email protected]> Signed-off-by: Tim Shimmin <[email protected]>
2007-02-10[XFS] Prevent buffer overrun in cmn_err().Lachlan McIlroy1-10/+13
The message buffer used by cmn_err() is only 256 bytes and some CXFS messages were exceeding this length. Since we were using vsprintf() and not checking for buffer overruns we were clobbering memory beyond the buffer. The size of the buffer has been increased to 1024 bytes so we can capture these larger messages and we are now using vsnprintf() to prevent overrunning the buffer size. SGI-PV: 958599 SGI-Modid: xfs-linux-melb:xfs-kern:27561a Signed-off-by: Lachlan McIlroy <[email protected]> Signed-off-by: Geoffrey Wehrman <[email protected]> Signed-off-by: Tim Shimmin <[email protected]>
2006-11-11[XFS] 956618: Linux crashes on boot with XFS-DMAPI filesystem whenVlad Apostolov1-3/+1
CONFIG_XFS_TRACE is on SGI-PV: 956618 SGI-Modid: xfs-linux-melb:xfs-kern:27196a Signed-off-by: Vlad Apostolov <[email protected]> Signed-off-by: Tim Shimmin <[email protected]>
2006-10-03BUG_ON conversion for fs/xfs/Eric Sesterhenn1-4/+2
This patch converts two if () BUG(); construct to BUG_ON(); which occupies less space, uses unlikely and is safer when BUG() is disabled. Signed-off-by: Eric Sesterhenn <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2006-06-09[XFS] Portability changes: remove prdev, stick to one diagnosticNathan Scott1-2/+2
interface. SGI-PV: 953338 SGI-Modid: xfs-linux-melb:xfs-kern:26103a Signed-off-by: Nathan Scott <[email protected]>
2006-01-12[XFS] Merge in trivial changes, sync up headers with userspaceNathan Scott1-34/+24
equivalents. SGI-PV: 907752 SGI-Modid: xfs-linux-melb:xfs-kern:24961a Signed-off-by: Nathan Scott <[email protected]>
2006-01-11[XFS] Mark some lookup tables const. Thanks to Arjan van de Ven forChristoph Hellwig1-1/+1
spotting these. SGI-PV: 946028 SGI-Modid: xfs-linux-melb:xfs-kern:202617a Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Nathan Scott <[email protected]>
2005-11-02[XFS] Update license/copyright notices to match the prefered SGINathan Scott1-27/+11
boilerplate. SGI-PV: 913862 SGI-Modid: xfs-linux:xfs-kern:23903a Signed-off-by: Nathan Scott <[email protected]>
2005-09-05[XFS] Sort out some cosmetic differences between XFS trees.Nathan Scott1-0/+1
SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:23719a Signed-off-by: Nathan Scott <[email protected]>
2005-06-21[XFS] simplify ASSERTChristoph Hellwig1-1/+0
SGI-PV: 938063 SGI-Modid: xfs-linux:xfs-kern:194416a Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Nathan Scott <[email protected]>
2005-04-16Linux-2.6.12-rc2Linus Torvalds1-0/+127
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!