X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flov_object.c;h=2561ae199da946d89e5123b4c203405f6ba3495e;hb=15d44e787e17ff57fc1fb5a6c9ae568cdaab6e34;hp=da7bfe690dc6889f5a908925b12605fef733e539;hpb=dfe87b089b662663ba125769866c98e803f89a8c;p=fs%2Flustre-release.git diff --git a/lustre/lov/lov_object.c b/lustre/lov/lov_object.c index da7bfe6..2561ae1 100644 --- a/lustre/lov/lov_object.c +++ b/lustre/lov/lov_object.c @@ -2165,7 +2165,8 @@ static int lov_object_layout_get(const struct lu_env *env, rc = lov_lsm_pack(lsm, buf->lb_buf, buf->lb_len); lov_lsm_put(lsm); - RETURN(rc < 0 ? rc : 0); + /* return error or number of bytes */ + RETURN(rc); } static loff_t lov_object_maxbytes(struct cl_object *obj)