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)
commitf427d4ce65659419c8989d87acd97d00b4db41e6
tree382dce7bf0150c284b84d822e3d1c8c037fb0281
parent68e65b29815f1f9bbe7384e07fc341f6c8f2f605
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.
(This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
source3/Makefile.in
source3/include/includes.h
source3/lib/cache.c [new file with mode: 0644]
source3/param/loadparm.c
source3/smbd/mangle_hash2.c
source3/smbd/server.c
source3/smbd/statcache.c
source3/smbd/vfs.c
source3/torture/torture.c
source3/torture/vfstest.c