diff options
author | Jiaying Zhang <jiayingz@google.com> | 2010-07-20 10:54:43 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-07-21 10:05:58 -0400 |
commit | fb5ffb0e160c93c3fe08ab83845eb9a2768af812 (patch) | |
tree | 1f3488ab93f21a30f9a60f612de63adce3ce1599 /fs/quota/quota_tree.h | |
parent | 01971952582068c4eaaef7410f32d16daa178a0d (diff) |
quota: Change quota error message to print out disk and function name
The current quota error message doesn't always print the disk name, so
it is hard to identify the "bad" disk when quota error happens.
This patch changes the standardized quota error message to print out disk name
and function name. It also uses a combination of cpp macro and inline function
to provide better type checking and to lower the text size of the message.
[Jan Kara: Export __quota_error]
Signed-off-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/quota_tree.h')
-rw-r--r-- | fs/quota/quota_tree.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/quota/quota_tree.h b/fs/quota/quota_tree.h index ccc3e71fb1d8..a1ab8db81a51 100644 --- a/fs/quota/quota_tree.h +++ b/fs/quota/quota_tree.h | |||
@@ -22,10 +22,4 @@ struct qt_disk_dqdbheader { | |||
22 | 22 | ||
23 | #define QT_TREEOFF 1 /* Offset of tree in file in blocks */ | 23 | #define QT_TREEOFF 1 /* Offset of tree in file in blocks */ |
24 | 24 | ||
25 | #define q_warn(fmt, args...) \ | ||
26 | do { \ | ||
27 | if (printk_ratelimit()) \ | ||
28 | printk(fmt, ## args); \ | ||
29 | } while(0) | ||
30 | |||
31 | #endif /* _LINUX_QUOTAIO_TREE_H */ | 25 | #endif /* _LINUX_QUOTAIO_TREE_H */ |