Whamcloud - gitweb
lu_object_fid(): return const as fid is immutable after object creation
authornikita <nikita>
Wed, 3 May 2006 18:25:16 +0000 (18:25 +0000)
committernikita <nikita>
Wed, 3 May 2006 18:25:16 +0000 (18:25 +0000)
lustre/include/linux/lu_object.h

index a77794f..c2f1773 100644 (file)
@@ -612,7 +612,7 @@ static inline struct lu_object *lu_object_next(const struct lu_object *o)
 /*
  * Pointer to the fid of this object.
  */
-static inline struct lu_fid *lu_object_fid(const struct lu_object *o)
+static inline const struct lu_fid *lu_object_fid(const struct lu_object *o)
 {
         return &o->lo_header->loh_fid;
 }