Add a in-memory cache
authorVolker Lendecke <vl@samba.org>
Tue, 18 Dec 2007 08:41:03 +0000 (09:41 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 18 Dec 2007 08:56:04 +0000 (09:56 +0100)
commit7a911b35713538d82001a3c9f34152e293fe1943
treed86a7b291d10b3463fcfcc72f7334da3455ae982
parent6a7f2a59fc370e226ddacb195059155f28c6c157
Add a in-memory cache

This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.

The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
source/Makefile.in
source/include/includes.h
source/lib/cache.c [new file with mode: 0644]
source/param/loadparm.c
source/smbd/mangle_hash2.c
source/smbd/server.c
source/smbd/statcache.c
source/smbd/vfs.c
source/torture/torture.c
source/torture/vfstest.c