patch-1.3.71 linux/fs/buffer.c
Next file: linux/fs/exec.c
Previous file: linux/fs/block_dev.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Mon Mar 4 11:25:49 1996
- Orig file:
v1.3.70/linux/fs/buffer.c
- Orig date:
Wed Feb 28 11:50:09 1996
diff -u --recursive --new-file v1.3.70/linux/fs/buffer.c linux/fs/buffer.c
@@ -363,7 +363,7 @@
bh->b_next_free->b_prev_free = bh->b_prev_free;
if (free_list[isize] == bh)
free_list[isize] = bh->b_next_free;
- };
+ }
bh->b_next_free = bh->b_prev_free = NULL;
}
@@ -398,7 +398,7 @@
if(!lru_list[bh->b_list]) {
lru_list[bh->b_list] = bh;
lru_list[bh->b_list]->b_prev_free = bh;
- };
+ }
if (!next_to_age[bh->b_list])
next_to_age[bh->b_list] = bh;
@@ -1571,14 +1571,16 @@
protected++;
if (buffer_dirty(bh))
dirty++;
- if(mem_map[MAP_NR(((unsigned long) bh->b_data))].count !=1) shared++;
+ if (mem_map[MAP_NR(((unsigned long) bh->b_data))].count != 1)
+ shared++;
if (bh->b_count)
used++, lastused = found;
bh = bh->b_next_free;
- } while (bh != lru_list[nlist]);
- printk("Buffer[%d] mem: %d buffers, %d used (last=%d), %d locked, "
- "%d protected, %d dirty %d shrd\n",
- nlist, found, used, lastused, locked, protected, dirty, shared);
+ } while (bh != lru_list[nlist]);
+ printk("Buffer[%d] mem: %d buffers, %d used (last=%d), "
+ "%d locked, %d protected, %d dirty %d shrd\n",
+ nlist, found, used, lastused,
+ locked, protected, dirty, shared);
};
printk("Size [LAV] Free Clean Unshar Lck Lck1 Dirty Shared \n");
for(isize = 0; isize<NR_SIZES; isize++){
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