[dovecot-cvs] dovecot/src/lib file-cache.c,1.4,1.5
cras at dovecot.org
cras at dovecot.org
Wed May 11 00:04:04 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv11560
Modified Files:
file-cache.c
Log Message:
Cache decisions were completely wrong for file sizes larger than 32kB.
Index: file-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/file-cache.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- file-cache.c 5 Dec 2004 01:36:12 -0000 1.4
+++ file-cache.c 10 May 2005 21:04:02 -0000 1.5
@@ -110,7 +110,6 @@
dest = PTR_OFFSET(cache->mmap_base, dest_offset);
dest_size = page_size;
- poffset %= CHAR_BIT;
while (psize > 0) {
if (bits[poffset / CHAR_BIT] & (1 << (poffset % CHAR_BIT))) {
/* page is already in cache */
More information about the dovecot-cvs
mailing list