X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_object.c;h=3e4d7ed01ee90e2c6ff6c4d84951f5552175a8a2;hp=4af567fa8fa461a2dd669433c9b62a4e2e2eac71;hb=03963106926883cf322e085feb8caa3ea64db1d1;hpb=71d63602c57e6d0cb723ae02ea767c6c170e5997 diff --git a/lustre/mdd/mdd_object.c b/lustre/mdd/mdd_object.c index 4af567f..3e4d7ed 100644 --- a/lustre/mdd/mdd_object.c +++ b/lustre/mdd/mdd_object.c @@ -3201,22 +3201,10 @@ void mdd_object_make_hint(const struct lu_env *env, struct mdd_object *parent, unlikely(spec != NULL && spec->sp_cr_flags & MDS_OPEN_HAS_EA)) { hint->dah_eadata = spec->u.sp_ea.eadata; hint->dah_eadata_len = spec->u.sp_ea.eadatalen; - } else { - hint->dah_eadata = NULL; - hint->dah_eadata_len = 0; - if (spec->sp_cr_flags & MDS_OPEN_APPEND) { - if (mdd->mdd_append_stripe_count != 0 || - mdd->mdd_append_pool[0]) - CDEBUG(D_INFO, - "using O_APPEND file striping\n"); - if (mdd->mdd_append_stripe_count) - hint->dah_append_stripes = - mdd->mdd_append_stripe_count; - if (mdd->mdd_append_pool[0]) - hint->dah_append_pool = mdd->mdd_append_pool; - } else { - hint->dah_append_stripes = 0; - } + } else if (S_ISREG(attr->la_mode) && + spec->sp_cr_flags & MDS_OPEN_APPEND) { + hint->dah_append_stripe_count = mdd->mdd_append_stripe_count; + hint->dah_append_pool = mdd->mdd_append_pool; } CDEBUG(D_INFO, DFID" eadata %p len %d\n", PFID(mdd_object_fid(child)),