patch-2.2.15 linux/fs/fat/mmap.c
Next file: linux/fs/isofs/inode.c
Previous file: linux/fs/fat/misc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Apr 21 12:46:42 2000
- Orig file:
v2.2.14/fs/fat/mmap.c
- Orig date:
Sun Mar 7 18:40:14 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -23,6 +23,7 @@
#include <asm/uaccess.h>
#include <asm/system.h>
+#include <asm/pgtable.h>
/*
* Fill in the supplied page for mmap
@@ -123,8 +124,12 @@
struct dentry * dentry = file->f_dentry;
struct inode * inode = dentry->d_inode;
if (MSDOS_SB(inode->i_sb)->cvf_format &&
- MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage)
- return MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage(inode,page);
+ MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage) {
+ int ret = MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage(inode,page);
+
+ flush_dcache_page(page_address(page));
+ return ret;
+ }
printk("fat_readpage called with no handler (shouldn't happen)\n");
return -1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)