patch-1.3.69 linux/fs/ext/file.c
Next file: linux/fs/ext2/ialloc.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Feb 25 11:17:58 1996
- Orig file:
v1.3.68/linux/fs/ext/file.c
- Orig date:
Tue Feb 20 14:37:26 1996
diff -u --recursive --new-file v1.3.68/linux/fs/ext/file.c linux/fs/ext/file.c
@@ -22,6 +22,7 @@
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/locks.h>
+#include <linux/pagemap.h>
#define NBUF 32
@@ -241,13 +242,14 @@
}
}
p = (pos % BLOCK_SIZE) + bh->b_data;
+ memcpy_fromfs(p,buf,c);
+ update_vm_cache(inode, pos, p, c);
pos += c;
if (pos > inode->i_size) {
inode->i_size = pos;
inode->i_dirt = 1;
}
written += c;
- memcpy_fromfs(p,buf,c);
buf += c;
mark_buffer_uptodate(bh, 1);
mark_buffer_dirty(bh, 0);
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