Whamcloud - gitweb
constify a bit
authornikita <nikita>
Fri, 5 May 2006 15:57:27 +0000 (15:57 +0000)
committernikita <nikita>
Fri, 5 May 2006 15:57:27 +0000 (15:57 +0000)
lustre/include/linux/dt_object.h
lustre/mdd/mdd_handler.c
lustre/mdt/mdt_handler.c

index daad374..3c77566 100644 (file)
@@ -188,14 +188,14 @@ struct dt_index_operations {
          */
         int   (*dio_index_insert)(struct lu_context *ctxt,
                                   struct dt_object *dt,
-                                  struct lu_fid *fid, const char *name,
+                                  const struct lu_fid *fid, const char *name,
                                   struct thandle *handle);
         /*
          * precondition: lu_object_exists(ctxt, &dt->do_lu);
          */
         int   (*dio_index_delete)(struct lu_context *ctxt,
                                   struct dt_object *dt,
-                                  struct lu_fid *fid, const char *name,
+                                  const struct lu_fid *fid, const char *name,
                                   struct thandle *handle);
 };
 
index 9ea07d1..6c3eefa 100644 (file)
@@ -476,7 +476,7 @@ mdd_xattr_set(struct lu_context *ctxt, struct md_object *obj, void *buf,
         RETURN(rc);
 }
 
-static struct lu_fid *mdd_object_getfid(struct mdd_object *obj)
+static const struct lu_fid *mdd_object_getfid(struct mdd_object *obj)
 {
         return lu_object_fid(&obj->mod_obj.mo_lu);
 }
index c236789..86f8a45 100644 (file)
@@ -66,9 +66,9 @@
  */
 unsigned long mdt_num_threads;
 
-static int                mdt_handle    (struct ptlrpc_request *req);
-static struct mdt_device *mdt_dev       (struct lu_device *d);
-static struct lu_fid     *mdt_object_fid(struct mdt_object *o);
+static int                  mdt_handle    (struct ptlrpc_request *req);
+static struct mdt_device   *mdt_dev       (struct lu_device *d);
+static const struct lu_fid *mdt_object_fid(struct mdt_object *o);
 
 static struct lu_context_key       mdt_thread_key;
 static struct lu_object_operations mdt_obj_ops;
@@ -482,7 +482,7 @@ void mdt_object_put(struct lu_context *ctxt, struct mdt_object *o)
         lu_object_put(ctxt, &o->mot_obj.mo_lu);
 }
 
-static struct lu_fid *mdt_object_fid(struct mdt_object *o)
+static const struct lu_fid *mdt_object_fid(struct mdt_object *o)
 {
         return lu_object_fid(&o->mot_obj.mo_lu);
 }