From: nikita Date: Wed, 3 May 2006 18:25:16 +0000 (+0000) Subject: lu_object_fid(): return const as fid is immutable after object creation X-Git-Tag: v1_8_0_110~486^2~1890 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dcfe15685a134ef26fafe4b6c743f144abca131a;p=fs%2Flustre-release.git lu_object_fid(): return const as fid is immutable after object creation --- diff --git a/lustre/include/linux/lu_object.h b/lustre/include/linux/lu_object.h index a77794f..c2f17735 100644 --- a/lustre/include/linux/lu_object.h +++ b/lustre/include/linux/lu_object.h @@ -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; }