X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Fosp_md_object.c;h=ea5ef0a13177fddc37b859f5a2de55db1ac16686;hp=26f8e32b87dcaeb9fdfd2cd7835088fa5434f307;hb=17797975b27e1b5222fb75cac49d90066091486d;hpb=3064318df90ce7019b83c8a7f80e93a9634c00fa diff --git a/lustre/osp/osp_md_object.c b/lustre/osp/osp_md_object.c index 26f8e32..ea5ef0a 100644 --- a/lustre/osp/osp_md_object.c +++ b/lustre/osp/osp_md_object.c @@ -532,7 +532,7 @@ static int osp_md_index_it_rec(const struct lu_env *env, const struct dt_it *di, struct lu_dirent *ent = (struct lu_dirent *)it->ooi_ent; int reclen; - reclen = lu_dirent_calc_size(ent->lde_namelen, attr); + reclen = lu_dirent_calc_size(le16_to_cpu(ent->lde_namelen), attr); memcpy(rec, ent, reclen); return 0; }