Whamcloud - gitweb
LU-14975 utils: non-recursive dir migration fix
[fs/lustre-release.git] / lustre / utils / liblustreapi.c
index 8ce5dc4..4d4b1f1 100644 (file)
@@ -6016,7 +6016,8 @@ out:
        /* Do not get down anymore? */
        if (param->fp_depth == param->fp_max_depth)
                ret = 1;
-       param->fp_depth++;
+       else
+               param->fp_depth++;
 
        if (dp != NULL) {
                /*