X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_reint.c;h=81c148fe573a2bbea9a126b3cc7893a0138b58ee;hp=73c710e2ee0e79f60c0ddc6a725e95c89317032f;hb=c1d0a355a6a64ec97c9f56c38ba036e5e50cd8c4;hpb=a120bb13525727654713f008ffcaf0e3aec7cb65 diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index 73c710e..81c148f 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -768,19 +768,6 @@ static int mdt_reint_setattr(struct mdt_thread_info *info, buf->lb_buf = lmu; buf->lb_len = ma->ma_lmv_size; - - if (le32_to_cpu(lmu->lum_hash_type) & - LMV_HASH_FLAG_SPACE) { - /* - * only allow setting "space" hash flag on - * plain directory. - */ - rc = mdt_object_striped(info, mo); - if (rc) - GOTO(out_put, - rc = (rc == 1) ? -EPERM : rc); - } - name = XATTR_NAME_DEFAULT_LMV; /* force client to update dir default layout */ lockpart |= MDS_INODELOCK_LOOKUP;