[lkml]   [2002]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] buffermem_pages removal (4/5)
This is the most discussion-worthy patch of the series:  Change the
meaning of si_meminfo->bufferram from "all pages in pagecache
backed by block devices" to "all pages in pagecache".

In the header/manpage is is documented as "Memory used by buffers",
but as the buffercache is gone I think the new meaning fits the
intention from pre-pagecache days much better.

--- 1.57/mm/page_alloc.c Sun May 5 18:56:08 2002
+++ edited/mm/page_alloc.c Tue May 21 14:27:32 2002
@@ -608,7 +608,7 @@
val->totalram = totalram_pages;
val->sharedram = 0;
val->freeram = nr_free_pages();
- val->bufferram = atomic_read(&buffermem_pages);
+ val->bufferram = get_page_cache_size();
val->totalhigh = totalhigh_pages;
val->freehigh = nr_free_highpages();
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:22    [W:0.046 / U:2.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site