Whamcloud - gitweb
LU-4975 ofd: documenting ofd_dev.c
[fs/lustre-release.git] / lustre / quota / lquota_disk.c
index 9f8069b..3d267ef 100644 (file)
@@ -21,7 +21,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  * Use is subject to license terms.
  *
  * Author: Johann Lombardi <johann.lombardi@intel.com>
  * - lquota_disk_update_ver:     update version of an index file
  */
 
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
-
 #define DEBUG_SUBSYSTEM S_LQUOTA
 
 #include "lquota_internal.h"
@@ -184,7 +180,7 @@ struct dt_object *lquota_disk_dir_find_create(const struct lu_env *env,
                        GOTO(out, rc);
 
                parent = dt_locate_at(env, dev, &qti->qti_fid,
-                                     dev->dd_lu_dev.ld_site->ls_top_dev);
+                                     dev->dd_lu_dev.ld_site->ls_top_dev, NULL);
                if (IS_ERR(parent))
                        GOTO(out, rc = PTR_ERR(parent));
        } else {
@@ -248,14 +244,13 @@ struct dt_object *lquota_disk_glb_find_create(const struct lu_env *env,
        CDEBUG(D_QUOTA, "look-up/create %sglobal idx file ("DFID")\n",
               local ? "local " : "", PFID(fid));
 
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2,7,50,0)
+#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 7, 53, 0)
        /* we use different index feature for each quota type and target type
         * for the time being. This is done for on-disk conversion from the old
         * quota format. Once this is no longer required, we should just be
         * using dt_quota_glb_features for all global index file */
        idx_feat = glb_idx_feature(fid);
 #else
-#warning "remove old quota compatibility code"
        idx_feat = &dt_quota_glb_features;
 #endif
 
@@ -682,7 +677,7 @@ int lquota_disk_write(const struct lu_env *env, struct thandle *th,
                        rc = dt_insert(env, obj, (struct dt_rec *)&qti->qti_rec,
                                       key, th, BYPASS_CAPA, 1);
                        LASSERTF(rc == 0, "failed to insert record in quota "
-                                "index "DFID,
+                                "index "DFID"\n",
                                 PFID(lu_object_fid(&obj->do_lu)));
                        GOTO(out, rc);
                }