X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fofd_access_batch.c;h=75cd43ee3812b54ddb6316a494f8dfdd26a481f6;hb=45a3e85f5c8924c85c0090e14748dc2cad366e53;hp=d5d567be478fa432cb89aa73e8f7693ce2e28fe7;hpb=a88ab3c916151a1c4aaedf358a65fbebb5d4f521;p=fs%2Flustre-release.git diff --git a/lustre/utils/ofd_access_batch.c b/lustre/utils/ofd_access_batch.c index d5d567b..75cd43e 100644 --- a/lustre/utils/ofd_access_batch.c +++ b/lustre/utils/ofd_access_batch.c @@ -388,8 +388,6 @@ void *alr_sort_and_print_thread(void *arg) qsort(sa, nr, sizeof(*sa), sort_compare); i = nr * aa->fraction / 100; - if (i > 0) - i--; cut = sa[i]; if (cut < 1) cut = 1; @@ -435,6 +433,8 @@ void *alr_sort_and_print_thread(void *arg) } out: + fflush(aa->file); + list_for_each_entry_safe(alre, next, tmp, alre_fid_hash_node.fhn_node) { alre_del_init(alre); free(alre);