X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=c2cda399c16be858884403393fd6f5e73a7acbd5;hp=7e306ff28eb259a9836371abfb5c22b9d5894325;hb=6115eb7fd5;hpb=5319713494a747eb47366e5abb4ba78383c6e531 diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index 7e306ff..c2cda39 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -2081,7 +2081,12 @@ out: res = ldlm_resource_get(ns, NULL, &tsi->tsi_resid, LDLM_EXTENT, 0); if (!IS_ERR(res)) { + struct ost_lvb *res_lvb; + ldlm_res_lvbo_update(res, NULL, 0); + res_lvb = res->lr_lvb_data; + repbody->oa.o_valid |= OBD_MD_FLBLOCKS; + repbody->oa.o_blocks = res_lvb->lvb_blocks; ldlm_resource_putref(res); } }