where bdflush has put the dirty buffer?

Song Jianping (song.jpg@263.net)
Sun, 26 Sep 1999 17:26:11 +0800


Hello all,

It seems a silly question, but it really puzzles me.
It seems that free buffer list can only be allocated by calling
refill_freelist(), which will ultimately allocate from free memeory
by calling __get_free_page()In the other hand, kernel thread bdflush() just
call ll_rw_block(), which will not free the buffer's memory, instead it just
cause the buffer's flag "BH_Uptodate" to be set.
My question is when will the buffer get reused? what's the purpose
of bdflush()?

Many thanks,
Song mailto:song.jpg@263.net:.˛mkabzwmb˛mbz_^nrzh&zvy杶ii