filemap.c patch

From: Adrian Chadd <adrian@dont-contact.us>
Date: Thu, 27 Apr 2000 17:32:40 +0800

Duane changed file_map_allocate to return a free bit,
not allocate it. However, this wasn't done n all
places, confusing the hell out of me. :)

I'd like to commit this patch:

Index: filemap.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/filemap.c,v
retrieving revision 1.34
diff -u -r1.34 filemap.c
--- filemap.c 2000/03/06 16:23:31 1.34
+++ filemap.c 2000/04/27 09:26:08
@@ -133,7 +133,7 @@
     for (bit = 0; bit < BITS_IN_A_LONG; bit++) {
        suggestion = ((unsigned long) word << LONG_BIT_SHIFT) | bit;
        if (!file_map_bit_test(fm, suggestion)) {
- return file_map_bit_set(fm, suggestion);
+ return suggestion;
        }
     }
     debug(8, 3) ("growing from file_map_allocate\n");

 

Any objections?

Adrian
Received on Thu Apr 27 2000 - 03:32:48 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:25 MST