summaryrefslogtreecommitdiffstats
path: root/fs/quota/quota_v1.c
diff options
context:
space:
mode:
authorJiaying Zhang <jiayingz@google.com>2010-07-20 16:54:43 +0200
committerJan Kara <jack@suse.cz>2010-07-21 16:05:58 +0200
commitfb5ffb0e160c93c3fe08ab83845eb9a2768af812 (patch)
tree1f3488ab93f21a30f9a60f612de63adce3ce1599 /fs/quota/quota_v1.c
parent01971952582068c4eaaef7410f32d16daa178a0d (diff)
downloadop-kernel-dev-fb5ffb0e160c93c3fe08ab83845eb9a2768af812.zip
op-kernel-dev-fb5ffb0e160c93c3fe08ab83845eb9a2768af812.tar.gz
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_v1.c')
-rw-r--r--fs/quota/quota_v1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/quota/quota_v1.c b/fs/quota/quota_v1.c
index 4af344c..34b37a6 100644
--- a/fs/quota/quota_v1.c
+++ b/fs/quota/quota_v1.c
@@ -95,8 +95,7 @@ static int v1_commit_dqblk(struct dquot *dquot)
(char *)&dqblk, sizeof(struct v1_disk_dqblk),
v1_dqoff(dquot->dq_id));
if (ret != sizeof(struct v1_disk_dqblk)) {
- printk(KERN_WARNING "VFS: dquota write failed on dev %s\n",
- dquot->dq_sb->s_id);
+ quota_error(dquot->dq_sb, "dquota write failed");
if (ret >= 0)
ret = -EIO;
goto out;
OpenPOWER on IntegriCloud