From: Jim Meyering Date: Tue, 4 Mar 2003 23:02:08 +0000 (+0000) Subject: (MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4. X-Git-Tag: v4.5.9~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47fa65c6487c36d8e161d731497e4ca10914ced2;p=thirdparty%2Fcoreutils.git (MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4. --- diff --git a/src/du.c b/src/du.c index afc3e0eae6..00120c6115 100644 --- a/src/du.c +++ b/src/du.c @@ -54,10 +54,7 @@ /* The maximum number of simultaneously open file handles that may be used by ftw. */ -#define MAX_N_DESCRIPTORS \ - (UTILS_OPEN_MAX < 20 \ - ? UTILS_OPEN_MAX \ - : UTILS_OPEN_MAX - 10) +#define MAX_N_DESCRIPTORS (3 * UTILS_OPEN_MAX / 4) /* Hash structure for inode and device numbers. The separate entry structure makes it easier to rehash "in place". */