patch-1.3.74 linux/fs/buffer.c
Next file: linux/include/asm-alpha/pgtable.h
Previous file: linux/drivers/sound/soundvers.h
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Wed Mar 13 13:52:45 1996
- Orig file:
v1.3.73/linux/fs/buffer.c
- Orig date:
Wed Mar 13 10:09:19 1996
diff -u --recursive --new-file v1.3.73/linux/fs/buffer.c linux/fs/buffer.c
@@ -49,7 +49,6 @@
static int nr_hash = 0; /* Size of hash table */
static struct buffer_head ** hash_table;
-struct buffer_head ** buffer_pages;
static struct buffer_head * lru_list[NR_LIST] = {NULL, };
/* next_to_age is an array of pointers into the lru lists, used to
cycle through the buffers aging their contents when deciding which
@@ -1327,7 +1326,7 @@
break;
}
free_list[isize] = bh;
- buffer_pages[MAP_NR(page)] = bh;
+ mem_map[MAP_NR(page)].buffers = bh;
tmp->b_this_page = bh;
buffermem += PAGE_SIZE;
return 1;
@@ -1377,7 +1376,7 @@
put_unused_buffer_head(p);
} while (tmp != bh);
buffermem -= PAGE_SIZE;
- buffer_pages[MAP_NR(page)] = NULL;
+ mem_map[MAP_NR(page)].buffers = NULL;
free_page(page);
return !mem_map[MAP_NR(page)].count;
}
@@ -1728,7 +1727,7 @@
break;
}
buffermem += PAGE_SIZE;
- buffer_pages[MAP_NR(page)] = bh;
+ mem_map[MAP_NR(page)].buffers = bh;
bh->b_this_page = tmp;
while (nblock-- > 0)
brelse(arr[nblock]);
@@ -1796,11 +1795,6 @@
hash_table = (struct buffer_head **) vmalloc(nr_hash *
sizeof(struct buffer_head *));
-
- buffer_pages = (struct buffer_head **) vmalloc(MAP_NR(high_memory) *
- sizeof(struct buffer_head *));
- for (i = 0 ; i < MAP_NR(high_memory) ; i++)
- buffer_pages[i] = NULL;
for (i = 0 ; i < nr_hash ; i++)
hash_table[i] = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this