Skip to contentSkip to conversation

ac7: page_launder() & refill_inactive() changes

PATCH Benjamin Redelings I 2 participants 2 messages Mar 3, 2001 – Mar 5, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit

Hi Marcelo:
In the patch you provided, have you perhaps reverse the sense of this
test:

+ if (try_to_free_buffers(page, wait))
+ flushed_pages++;

Should this have a NOT (!) instead?

+ if (!try_to_free_buffers(page, wait))
+ flushed_pages++;

BTW, has anyone done any MM benchmarks of the 2.4.2-ac? against Linus's tree?

-BenRI

Signature · 8 lines
"...assisted of course by pride, for we teach them to describe the
 Creeping Death, as Good Sense, or Maturity, or Experience." 
- "The Screwtape Letters"
Benjamin Redelings I      <><     http://www.bol.ucla.edu/~bredelin/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
#1 lore raw
Quoted 11 lines · Benjamin Redelings I

Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit

Hi Marcelo:
In the patch you provided, have you perhaps reverse the sense of this
test:

(quoted diff) +2 -0
+                       if (try_to_free_buffers(page, wait))
+                               flushed_pages++;
Quoted 1 line

Should this have a NOT (!) instead?

No.

I changed try_to_free_buffers() to return true if it did IO.

Review

Quoted 4 lines
(quoted diff) +2 -0
+                       if (!try_to_free_buffers(page, wait))
+                               flushed_pages++;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/