patch-2.3.5 linux/include/linux/fs.h

Next file: linux/include/linux/if_ether.h
Previous file: linux/include/linux/binfmts.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.4/linux/include/linux/fs.h linux/include/linux/fs.h
@@ -625,7 +625,7 @@
 	void (*truncate) (struct inode *);
 	int (*permission) (struct inode *, int);
 	int (*smap) (struct inode *,int);
-	int (*updatepage) (struct file *, struct page *, unsigned long, unsigned int, int);
+	int (*updatepage) (struct file *, struct page *, unsigned long, unsigned int);
 	int (*revalidate) (struct dentry *);
 };
 
@@ -874,10 +874,12 @@
 
 extern int brw_page(int, struct page *, kdev_t, int [], int, int);
 
+typedef long (*writepage_t)(struct file *, struct page *, unsigned long, unsigned long, const char *);
+
 extern int generic_readpage(struct file *, struct page *);
 extern int generic_file_mmap(struct file *, struct vm_area_struct *);
 extern ssize_t generic_file_read(struct file *, char *, size_t, loff_t *);
-extern ssize_t generic_file_write(struct file *, const char*, size_t, loff_t*);
+extern ssize_t generic_file_write(struct file *, const char*, size_t, loff_t *, writepage_t);
 
 extern struct super_block *get_super(kdev_t dev);
 extern void put_super(kdev_t dev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)