patch-1.3.52 linux/fs/buffer.c
Next file: linux/fs/exec.c
Previous file: linux/drivers/scsi/sr.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Dec 29 15:15:16 1995
- Orig file:
v1.3.51/linux/fs/buffer.c
- Orig date:
Wed Dec 27 09:12:13 1995
diff -u --recursive --new-file v1.3.51/linux/fs/buffer.c linux/fs/buffer.c
@@ -1042,6 +1042,10 @@
}
tmp = get_hash_table(dev, block, size);
if (tmp) {
+ if (!buffer_uptodate(tmp)) {
+ ll_rw_block(READ, 1, &tmp);
+ wait_on_buffer(tmp);
+ }
memcpy(next->b_data, tmp->b_data, size);
brelse(tmp);
continue;
@@ -1789,6 +1793,8 @@
in a few more things so "top" and /proc/2/{exe,root,cwd}
display semi-sane things. Not real crucial though... */
+ current->session = 1;
+ current->pgrp = 1;
sprintf(current->comm, "kernel bdflush");
for (;;) {
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