24 Apr 03:24
[patch 38/44] jffs2 convert to new aops
Nick Piggin <npiggin <at> suse.de>
2007-04-24 01:24:24 GMT
2007-04-24 01:24:24 GMT
Cc: dwmw2 <at> infradead.org Cc: jffs-dev <at> axis.com Cc: Linux Filesystems <linux-fsdevel <at> vger.kernel.org> Signed-off-by: Nick Piggin <npiggin <at> suse.de> fs/jffs2/file.c | 105 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 66 insertions(+), 39 deletions(-) Index: linux-2.6/fs/jffs2/file.c =================================================================== --- linux-2.6.orig/fs/jffs2/file.c +++ linux-2.6/fs/jffs2/file.c @@ -21,10 +21,12 @@ #include <linux/jffs2.h> #include "nodelist.h" -static int jffs2_commit_write (struct file *filp, struct page *pg, - unsigned start, unsigned end); -static int jffs2_prepare_write (struct file *filp, struct page *pg, - unsigned start, unsigned end); +static int jffs2_write_end(struct file *filp, struct address_space *mapping, + loff_t pos, unsigned len, unsigned copied, + struct page *pg, void *fsdata); +static int jffs2_write_begin(struct file *filp, struct address_space *mapping, + loff_t pos, unsigned len, unsigned flags, + struct page **pagep, void **fsdata); static int jffs2_readpage (struct file *filp, struct page *pg); int jffs2_fsync(struct file *filp, struct dentry *dentry, int datasync) @@ -67,8 +69,8 @@ const struct inode_operations jffs2_file(Continue reading)
RSS Feed