X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fdircache.h;h=0b79da01e182f3ad11f2e984c903a28dca0f6c16;hb=130d356c840ea83c31c4724c8ae92660360eb07b;hp=69c5f9abebd40ae197cecae82a60f4421d81ae98;hpb=954f1435c53be3c861e662d9a6699227c612de57;p=netatalk.git diff --git a/etc/afpd/dircache.h b/etc/afpd/dircache.h index 69c5f9ab..0b79da01 100644 --- a/etc/afpd/dircache.h +++ b/etc/afpd/dircache.h @@ -21,7 +21,6 @@ #include /* Maximum size of the dircache hashtable */ -#define DEFAULT_MAX_DIRCACHE_SIZE 8192 #define MAX_POSSIBLE_DIRCACHE_SIZE 131072 #define DIRCACHE_FREE_QUANTUM 256 @@ -32,10 +31,10 @@ #define DIRCACHE_ALL (DIRCACHE|DIDNAME_INDEX|QUEUE_INDEX) extern int dircache_init(int reqsize); -extern int dircache_add(struct dir *); +extern int dircache_add(const struct vol *, struct dir *); extern void dircache_remove(const struct vol *, struct dir *, int flag); extern struct dir *dircache_search_by_did(const struct vol *vol, cnid_t did); -extern struct dir *dircache_search_by_name(const struct vol *, const struct dir *dir, char *name, int len, time_t ctime); +extern struct dir *dircache_search_by_name(const struct vol *, const struct dir *dir, char *name, int len); extern void dircache_dump(void); extern void log_dircache_stat(void); #endif /* DIRCACHE_H */