kernel-ark/fs/btrfs
Simon Kirby c2cf52eb71 Btrfs: Include the device in most error printk()s
With more than one btrfs volume mounted, it can be very difficult to find
out which volume is hitting an error. btrfs_error() will print this, but
it is currently rigged as more of a fatal error handler, while many of
the printk()s are currently for debugging and yet-unhandled cases.

This patch just changes the functions where the device information is
already available. Some cases remain where the root or fs_info is not
passed to the function emitting the error.

This may introduce some confusion with volumes backed by multiple devices
emitting errors referring to the primary device in the set instead of the
one on which the error occurred.

Use btrfs_printk(fs_info, format, ...) rather than writing the device
string every time, and introduce macro wrappers ala XFS for brevity.
Since the function already cannot be used for continuations, print a
newline as part of the btrfs_printk() message rather than at each caller.

Signed-off-by: Simon Kirby <sim@hostway.ca>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-05-06 15:54:23 -04:00
..
acl.c Btrfs: skip adding an acl attribute if we don't have to 2012-12-16 20:46:15 -05:00
async-thread.c
async-thread.h
backref.c Btrfs: fix backref walking race with tree deletions 2013-02-26 11:00:50 -05:00
backref.h Btrfs: move fs/btrfs/ioctl.h to include/uapi/linux/btrfs.h 2013-02-20 09:37:28 -05:00
btrfs_inode.h Btrfs: serialize unlocked dio reads with truncate 2013-02-20 12:59:47 -05:00
check-integrity.c btrfs: define BTRFS_MAGIC as a u64 value 2013-02-20 13:00:01 -05:00
check-integrity.h
compat.h
compression.c Btrfs: cleanup unused arguments of btrfs_csum_data 2013-05-06 15:54:14 -04:00
compression.h
ctree.c Btrfs: add a incompatible format change for smaller metadata extent refs 2013-05-06 15:54:18 -04:00
ctree.h Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
delayed-inode.c Btrfs: improve the delayed inode throttling 2013-03-07 07:52:40 -05:00
delayed-inode.h Btrfs: improve the delayed inode throttling 2013-03-07 07:52:40 -05:00
delayed-ref.c Btrfs: make delayed ref lock logic more readable 2013-02-20 09:36:41 -05:00
delayed-ref.h Merge branch 'raid56-experimental' into for-linus-3.9 2013-02-20 14:06:05 -05:00
dev-replace.c Btrfs: check the return value of btrfs_start_delalloc_inodes() 2013-02-20 09:37:21 -05:00
dev-replace.h Btrfs: add new sources for device replace code 2012-12-12 17:15:41 -05:00
dir-item.c Btrfs: fix hash overflow handling 2012-12-17 14:48:21 -05:00
disk-io.c btrfs: clean snapshots one by one 2013-05-06 15:54:21 -04:00
disk-io.h Btrfs: cleanup unused arguments of btrfs_csum_data 2013-05-06 15:54:14 -04:00
export.c fs: encode_fh: return FILEID_INVALID if invalid fid_type 2013-02-26 02:46:10 -05:00
export.h
extent_io.c Btrfs: fix race between mmap writes and compression 2013-03-26 13:19:14 -04:00
extent_io.h Btrfs: fix race between mmap writes and compression 2013-03-26 13:19:14 -04:00
extent_map.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
extent_map.h Btrfs: do not allow logged extents to be merged or removed 2013-01-24 12:49:48 -05:00
extent-tree.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
file-item.c btrfs: Cleanup some redundant codes in btrfs_lookup_csums_range() 2013-05-06 15:54:20 -04:00
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs 2013-03-29 11:13:25 -07:00
free-space-cache.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
free-space-cache.h Btrfs: add some free space cache tests 2013-05-06 15:52:54 -04:00
hash.h
inode-item.c
inode-map.c
inode-map.h
inode.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
ioctl.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs 2013-03-08 17:33:20 -08:00
Kconfig btrfs: update kconfig title 2013-05-06 15:54:22 -04:00
locking.c Btrfs: save us a read_lock 2013-02-20 09:37:17 -05:00
locking.h Btrfs: remove btrfs_try_spin_lock 2013-03-14 14:57:10 -04:00
lzo.c
Makefile Btrfs: RAID5 and RAID6 2013-02-01 14:24:23 -05:00
math.h
ordered-data.c Btrfs: hold the ordered operations mutex when waiting on ordered extents 2013-03-28 09:51:28 -04:00
ordered-data.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next into for-linus-3.9 2013-02-20 14:05:45 -05:00
orphan.c
print-tree.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
print-tree.h
qgroup.c Btrfs: fix double free in the btrfs_qgroup_account_ref() 2013-03-28 09:51:29 -04:00
raid56.c btrfs/raid56: Add missing #include <linux/vmalloc.h> 2013-03-03 06:53:41 -05:00
raid56.h Btrfs: RAID5 and RAID6 2013-02-01 14:24:23 -05:00
rcu-string.h
reada.c Btrfs: introduce GET_READ_MIRRORS functionality for btrfs_map_block() 2012-12-12 17:15:43 -05:00
relocation.c btrfs: clean snapshots one by one 2013-05-06 15:54:21 -04:00
root-tree.c Btrfs: rename root_times_lock to root_item_lock 2012-12-16 20:46:21 -05:00
scrub.c Btrfs: add a incompatible format change for smaller metadata extent refs 2013-05-06 15:54:18 -04:00
send.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs 2013-03-29 11:13:25 -07:00
send.h btrfs: add "no file data" flag to btrfs send ioctl 2013-02-20 12:59:39 -05:00
struct-funcs.c
super.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
sysfs.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
transaction.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
transaction.h btrfs: clean snapshots one by one 2013-05-06 15:54:21 -04:00
tree-defrag.c btrfs: remove cache only arguments from defrag path 2013-02-20 12:59:36 -05:00
tree-log.c btrfs: Cleanup some redundant codes in btrfs_log_inode() 2013-05-06 15:54:20 -04:00
tree-log.h
ulist.c btrfs: fixup/remove module.h usage as required 2013-03-01 15:01:01 -05:00
ulist.h
version.h
volumes.c Btrfs: Include the device in most error printk()s 2013-05-06 15:54:23 -04:00
volumes.h Merge branch 'raid56-experimental' into for-linus-3.9 2013-02-20 14:06:05 -05:00
xattr.c Btrfs: only log the inode item if we can get away with it 2012-12-16 20:46:21 -05:00
xattr.h
zlib.c