Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/libbb/inode_hash.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/libbb/inode_hash.c
r1765 r2725 6 6 * If you wrote this, please acknowledge your work. 7 7 * 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 9 */ 10 10 … … 18 18 } ino_dev_hashtable_bucket_t; 19 19 20 #define HASH_SIZE 311/* Should be prime */21 #define hash_inode(i) 20 #define HASH_SIZE 311 /* Should be prime */ 21 #define hash_inode(i) ((i) % HASH_SIZE) 22 22 23 23 /* array of [HASH_SIZE] elements */ … … 28 28 * ino_dev_hashtable, else return NULL 29 29 */ 30 char *is_in_ino_dev_hashtable(const struct stat *statbuf)30 char* FAST_FUNC is_in_ino_dev_hashtable(const struct stat *statbuf) 31 31 { 32 32 ino_dev_hashtable_bucket_t *bucket; … … 48 48 49 49 /* Add statbuf to statbuf hash table */ 50 void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name)50 void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) 51 51 { 52 52 int i; … … 68 68 } 69 69 70 #if ENABLE_ FEATURE_CLEAN_UP70 #if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP 71 71 /* Clear statbuf hash table */ 72 void reset_ino_dev_hashtable(void)72 void FAST_FUNC reset_ino_dev_hashtable(void) 73 73 { 74 74 int i; … … 85 85 ino_dev_hashtable = NULL; 86 86 } 87 #else88 void reset_ino_dev_hashtable(void);89 87 #endif
Note:
See TracChangeset
for help on using the changeset viewer.