patch-1.3.96 linux/mm/filemap.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Apr 27 12:31:27 1996
- Orig file:
v1.3.95/linux/mm/filemap.c
- Orig date:
Wed Apr 24 17:00:43 1996
diff -u --recursive --new-file v1.3.95/linux/mm/filemap.c linux/mm/filemap.c
@@ -424,8 +424,8 @@
* We try to have a limit of MAX_READWINDOW = 48K.
*/
-#define MAX_READWINDOW (PAGE_SIZE*32)
-#define MAX_READAHEAD (PAGE_SIZE*16)
+#define MAX_READWINDOW (PAGE_SIZE*12)
+#define MAX_READAHEAD (PAGE_SIZE*7)
#define MIN_READAHEAD (PAGE_SIZE)
static inline unsigned long generic_file_readahead(struct file * filp, struct inode * inode,
@@ -987,7 +987,7 @@
unsigned long end = address + size;
int error = 0;
- dir = pgd_offset(current->mm, address);
+ dir = pgd_offset(vma->vm_mm, address);
flush_cache_range(vma->vm_mm, end - size, end);
while (address < end) {
error |= filemap_sync_pmd_range(dir, address, end - address, vma, flags);
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