summaryrefslogtreecommitdiff
path: root/libbb/inode_hash.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-11-11 21:15:56 +0000
committerDenis Vlasenko2008-11-11 21:15:56 +0000
commit618a3027edbfd42e52bfd7680cd24affe7a29b4c (patch)
tree5493504ca370c90464e3b6550d11b6d51c05c4fc /libbb/inode_hash.c
parent3b35fbb6323adadf7108e1d32fc4d93b4d89e9c4 (diff)
downloadbusybox-618a3027edbfd42e52bfd7680cd24affe7a29b4c.zip
busybox-618a3027edbfd42e52bfd7680cd24affe7a29b4c.tar.gz
du: fix "du /dir /dir" case
reset_ino_dev_hashtable - 84 +84 du 388 376 -12 du_main 327 301 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 84/-38) Total: 46 bytes
Diffstat (limited to 'libbb/inode_hash.c')
-rw-r--r--libbb/inode_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 4469671..b32bd26 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -67,7 +67,7 @@ void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *
ino_dev_hashtable[i] = bucket;
}
-#if ENABLE_FEATURE_CLEAN_UP
+#if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP
/* Clear statbuf hash table */
void FAST_FUNC reset_ino_dev_hashtable(void)
{