This improves performance by ~30%.
@@ -47,6 +47,7 @@ du(const char *path, int depth, void *total)
return;
}
if (S_ISDIR(st.st_mode))
recurse(path, du, depth, &subtotal);
*((size_t *)total) += subtotal + nblks(st.st_blocks);
The note is not visible to the blocked user.