Skip to contentSkip to conversation

accounting bh->b_count in page->count

DISCUSSION Alexey Zhuravlev 2 participants 2 messages May 6, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Hello!

why do not change bh->b_page->count on getblk/brelse? this could prevent situation when a page that can't be freed by try_to_free_buffers from buffercache lives on inactive_dirty list and VM try to free it every time...

--
poka, lexa
--
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 4 lines · Alexey Zhuravlev

why do not change bh->b_page->count on getblk/brelse? this could prevent situation when a page that can't be freed by try_to_free_buffers from buffercache lives on inactive_dirty list and VM try to free it every time...

We have to watch out for one thing though ... we have to be able to write inactive_dirty pages to disk without having them move back to the active list ;)

regards,

Rik
--
Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...

http://www.surriel.com/ http://distro.conectiva.com/

Send all your spam to [email protected] (spam digging piggy)

--
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/