diff options
author | Jiaying Zhang <jiayingz@google.com> | 2010-07-20 16:54:43 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-07-21 16:05:58 +0200 |
commit | fb5ffb0e160c93c3fe08ab83845eb9a2768af812 (patch) | |
tree | 1f3488ab93f21a30f9a60f612de63adce3ce1599 /include/linux/quotaops.h | |
parent | 01971952582068c4eaaef7410f32d16daa178a0d (diff) | |
download | linux-stable-fb5ffb0e160c93c3fe08ab83845eb9a2768af812.tar.gz linux-stable-fb5ffb0e160c93c3fe08ab83845eb9a2768af812.tar.bz2 linux-stable-fb5ffb0e160c93c3fe08ab83845eb9a2768af812.zip |
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 'include/linux/quotaops.h')
-rw-r--r-- | include/linux/quotaops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index 126193c1a5ce..4881b49b1a9a 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h @@ -28,6 +28,12 @@ static inline bool is_quota_modification(struct inode *inode, struct iattr *ia) #if defined(CONFIG_QUOTA) +#define quota_error(sb, fmt, args...) \ + __quota_error((sb), __func__, fmt , ## args) + +extern void __quota_error(struct super_block *sb, const char *func, + const char *fmt, ...); + /* * declaration of quota_function calls in kernel. */ |