Whamcloud - gitweb
Branch b1_8
authortianzy <tianzy>
Fri, 29 Aug 2008 06:44:47 +0000 (06:44 +0000)
committertianzy <tianzy>
Fri, 29 Aug 2008 06:44:47 +0000 (06:44 +0000)
invert printk to CERROR/CWARN in lustre_quota_fmt
b=16851
i=johann
i=panda

lustre/lvfs/lustre_quota_fmt.c

index 6124a73..880ee5d 100644 (file)
@@ -171,9 +171,8 @@ int lustre_write_quota_info(struct lustre_quota_info *lqi, int type)
                               sizeof(struct lustre_disk_dqinfo), &offset);
         set_fs(fs);
         if (size != sizeof(struct lustre_disk_dqinfo)) {
-                printk(KERN_WARNING
-                       "Can't write info structure on device %s.\n",
-                       f->f_vfsmnt->mnt_sb->s_id);
+                CWARN("Can't write info structure on device %s.\n",
+                      f->f_vfsmnt->mnt_sb->s_id);
                 return -1;
         }
         return 0;
@@ -241,8 +240,7 @@ dqbuf_t getdqbuf(void)
 {
         dqbuf_t buf = kmalloc(LUSTRE_DQBLKSIZE, GFP_NOFS);
         if (!buf)
-                printk(KERN_WARNING
-                       "VFS: Not enough memory for quota buffers.\n");
+                CWARN("VFS: Not enough memory for quota buffers.\n");
         return buf;
 }
 
@@ -587,8 +585,8 @@ static int lustre_write_dquot(struct lustre_dquot *dquot,
                                 dqblk_sz, &offset);
         set_fs(fs);
         if (ret != dqblk_sz) {
-                printk(KERN_WARNING "VFS: dquota write failed on dev %s\n",
-                       filp->f_dentry->d_sb->s_id);
+                CWARN("VFS: dquota write failed on dev %s\n",
+                      filp->f_dentry->d_sb->s_id);
                 if (ret >= 0)
                         ret = -ENOSPC;
         } else