X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdc%2Fmdc_request.c;h=4288f0e6e7cb9927f26f72b4a377aab480d71bd8;hb=69b34f1a015ee0ffabf4c6477f9d681608aa5af6;hp=68c5f2741b0b9a1227e7f010236326bff39b443c;hpb=2f253abab679c21b41197379b23e36943e5995a7;p=fs%2Flustre-release.git diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 68c5f27..4288f0e 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -190,14 +190,13 @@ static int mdc_getattr_common(struct obd_export *exp, CDEBUG(D_NET, "mode: %o\n", body->mode); - if (body->eadatasize != 0) { - mdc_update_max_ea_from_body(exp, body); - - eadata = req_capsule_server_sized_get(pill, &RMF_MDT_MD, - body->eadatasize); - if (eadata == NULL) - RETURN(-EPROTO); - } + mdc_update_max_ea_from_body(exp, body); + if (body->eadatasize != 0) { + eadata = req_capsule_server_sized_get(pill, &RMF_MDT_MD, + body->eadatasize); + if (eadata == NULL) + RETURN(-EPROTO); + } if (body->valid & OBD_MD_FLRMTPERM) { struct mdt_remote_perm *perm;