Undid usage of vector-copy function. It's a good idea but there's a bug
there somewhere. I'll debug first, then recommit.
This commit is contained in:
parent
e782e76944
commit
d0b5cf84cb
1 changed files with 3 additions and 1 deletions
|
@ -210,8 +210,10 @@ int rw_flag; /* READING or WRITING */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* do copying to/from user space */
|
/* do copying to/from user space */
|
||||||
r2 = rw_chunk_finish(&completed);
|
r2 = rw_chunk_finish(&completed);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* On write, update file size and access time. */
|
/* On write, update file size and access time. */
|
||||||
if (rw_flag == WRITING) {
|
if (rw_flag == WRITING) {
|
||||||
|
@ -330,7 +332,7 @@ int *completed; /* number of bytes copied */
|
||||||
zero_block(bp);
|
zero_block(bp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
if (rw_flag == READING) {
|
if (rw_flag == READING) {
|
||||||
/* Copy a chunk from the block buffer to user space. */
|
/* Copy a chunk from the block buffer to user space. */
|
||||||
r = sys_vircopy(FS_PROC_NR, D, (phys_bytes) (bp->b_data+off),
|
r = sys_vircopy(FS_PROC_NR, D, (phys_bytes) (bp->b_data+off),
|
||||||
|
|
Loading…
Reference in a new issue