patch-2.3.99-pre3 linux/include/linux/fs.h

Next file: linux/include/linux/hdreg.h
Previous file: linux/include/linux/fb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/include/linux/fs.h linux/include/linux/fs.h
@@ -339,7 +339,7 @@
 struct address_space_operations {
 	int (*writepage) (struct dentry *, struct page *);
 	int (*readpage)(struct dentry *, struct page *);
-	int (*prepare_write)(struct page *, unsigned, unsigned);
+	int (*prepare_write)(struct file *, struct page *, unsigned, unsigned);
 	int (*commit_write)(struct file *, struct page *, unsigned, unsigned);
 	/* Unfortunately this kludge is needed for FIBMAP. Don't use it */
 	int (*bmap)(struct address_space *, long);
@@ -751,8 +751,7 @@
 		return -ENODEV;
 	if (!sb->s_op || !sb->s_op->statfs)
 		return -ENOSYS;
-	memset(buf, 0xff, sizeof(struct statfs));
-	buf->f_blocks = 0;	/* Darn GNU df... */
+	memset(buf, 0, sizeof(struct statfs));
 	return sb->s_op->statfs(sb, buf);
 }
 
@@ -814,6 +813,7 @@
 extern void put_unused_fd(unsigned int);
 
 extern struct file *filp_open(const char *, int, int, struct dentry *);
+extern struct file *dentry_open(struct dentry *, int);
 extern int filp_close(struct file *, fl_owner_t id);
 
 extern char * getname(const char *);
@@ -938,6 +938,9 @@
 	return __open_namei(pathname, 0, 0, NULL);
 }
 
+extern int kernel_read(struct file *, unsigned long, char *, unsigned long);
+extern struct file * open_exec(const char *);
+ 
 /* fs/dcache.c -- generic fs support functions */
 extern int is_subdir(struct dentry *, struct dentry *);
 extern ino_t find_inode_number(struct dentry *, struct qstr *);

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