lkml.org 
[lkml]   [1999]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.2.0-final
On Sat, 23 Jan 1999, Andrea Arcangeli wrote:

> where buffer_get() is this:

Just for the record, I cut-and-pasted a wrong buffer_get() (due a
last-minute wrong hack, I noticed it now when I powerup the machine now
;), the right one is this:

extern inline void buffer_get(struct buffer_head *bh)
{
struct page * page = mem_map + MAP_NR(bh->b_data);
switch (atomic_read(&page->count))
{
case 1:
nr_freeable_pages--;
default:
atomic_inc(&page->count);
break;
#if 1 /* PARANOID */
case 0:
printk(KERN_ERR "buffer_get: page was unused!\n");
#endif
}
}
Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2011 Jasper Spaans