X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdir.c;h=de7c285823a86150c120a07cf146e4b1c6a9faaa;hp=1892c6568b9e61b4930e35acd9201c0790119dce;hb=c23c68a52a04369101db2bd3b1d3da23025fcf48;hpb=ec4126dcee97eab9a377899221c05d3e15746ebf diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index 1892c65..de7c285 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -521,7 +521,8 @@ static int ll_dir_setdirstripe(struct dentry *dparent, struct lmv_user_md *lump, if (IS_ERR(op_data)) RETURN(PTR_ERR(op_data)); - op_data->op_dir_depth = ll_i2info(parent)->lli_dir_depth; + op_data->op_dir_depth = ll_i2info(parent)->lli_inherit_depth ?: + ll_i2info(parent)->lli_dir_depth; if (ll_sbi_has_encrypt(sbi) && (IS_ENCRYPTED(parent) ||