Home | History | Annotate | Download | only in lfs

Lines Matching refs:dirhash

61  * Defaults for dirhash cache sizes:
63 * - disable dirhash (set the cache size to 0 bytes) if the
65 * - cap maximum size of the dirhash cache at 32MB.
82 static int ulfsdirhash_hash(struct dirhash *dh, const char *name, int namelen);
83 static void ulfsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff,
85 static void ulfsdirhash_delslot(struct dirhash *dh, int slot);
86 static int ulfsdirhash_findslot(struct dirhash *dh, const char *name,
104 /* Dirhash list; recently-used entries are near the tail. */
105 static TAILQ_HEAD(, dirhash) ulfsdirhash_list;
119 * dirhash, but anything can steal its memory and set dh_hash to NULL.
130 struct dirhash *dh;
138 /* Check if we can/should use dirhash. */
295 struct dirhash *dh;
310 /* The dirhash pointed to by 'dh' is exclusively ours now. */
343 struct dirhash *dh, *dh_next;
355 * Move this dirhash towards the end of the list if it has a
518 struct dirhash *dh;
605 struct dirhash *dh;
640 struct dirhash *dh;
688 struct dirhash *dh;
724 struct dirhash *dh;
746 * Inform dirhash that the directory has grown by one block that
752 struct dirhash *dh;
783 * Inform dirhash that the directory is being truncated.
788 struct dirhash *dh;
834 * Debugging function to check that the dirhash information about
846 struct dirhash *dh;
911 * Hash the specified filename into a dirhash slot.
914 ulfsdirhash_hash(struct dirhash *dh, const char *name, int namelen)
920 * invariant over the dirhash's lifetime. Otherwise names
938 ulfsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff, int dirblksiz)
975 ulfsdirhash_findslot(struct dirhash *dh, const char *name, int namelen,
1000 ulfsdirhash_delslot(struct dirhash *dh, int slot)
1066 struct dirhash *dh;
1074 /* Find a dirhash, and lock it. */
1134 CTLTYPE_NODE, "dirhash",
1135 SYSCTL_DESCR("dirhash"),
1149 SYSCTL_DESCR("maximum dirhash memory usage"),
1156 SYSCTL_DESCR("current dirhash memory usage"),
1173 * Only initialise defaults for the dirhash size if it hasn't
1195 ulfsdirhash_cache = pool_cache_init(sizeof(struct dirhash), 0,
1196 0, 0, "dirhash", NULL, IPL_NONE, NULL, NULL, NULL);