]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/quota/dquot.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / fs / quota / dquot.c
index 0fed41e6efcda6e993d83fe9bbb6da970ff4bd4b..a2a622e079f08f55c5dfe2a8b40c8b8c59a04db5 100644 (file)
@@ -133,16 +133,20 @@ __cacheline_aligned_in_smp DEFINE_SPINLOCK(dq_data_lock);
 EXPORT_SYMBOL(dq_data_lock);
 
 void __quota_error(struct super_block *sb, const char *func,
-                 const char *fmt, ...)
+                  const char *fmt, ...)
 {
-       va_list args;
-
        if (printk_ratelimit()) {
+               va_list args;
+               struct va_format vaf;
+
                va_start(args, fmt);
-               printk(KERN_ERR "Quota error (device %s): %s: ",
-                      sb->s_id, func);
-               vprintk(fmt, args);
-               printk("\n");
+
+               vaf.fmt = fmt;
+               vaf.va = &args;
+
+               printk(KERN_ERR "Quota error (device %s): %s: %pV\n",
+                      sb->s_id, func, &vaf);
+
                va_end(args);
        }
 }
@@ -2185,8 +2189,8 @@ int dquot_resume(struct super_block *sb, int type)
 }
 EXPORT_SYMBOL(dquot_resume);
 
-int dquot_quota_on_path(struct super_block *sb, int type, int format_id,
-                     struct path *path)
+int dquot_quota_on(struct super_block *sb, int type, int format_id,
+                  struct path *path)
 {
        int error = security_quota_on(path->dentry);
        if (error)
@@ -2200,20 +2204,6 @@ int dquot_quota_on_path(struct super_block *sb, int type, int format_id,
                                             DQUOT_LIMITS_ENABLED);
        return error;
 }
-EXPORT_SYMBOL(dquot_quota_on_path);
-
-int dquot_quota_on(struct super_block *sb, int type, int format_id, char *name)
-{
-       struct path path;
-       int error;
-
-       error = kern_path(name, LOOKUP_FOLLOW, &path);
-       if (!error) {
-               error = dquot_quota_on_path(sb, type, format_id, &path);
-               path_put(&path);
-       }
-       return error;
-}
 EXPORT_SYMBOL(dquot_quota_on);
 
 /*