Implement new aops for ext2. fs/ext2/inode.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: linux-2.6/fs/ext2/inode.c =================================================================== --- linux-2.6.orig/fs/ext2/inode.c +++ linux-2.6/fs/ext2/inode.c @@ -643,6 +643,16 @@ ext2_readpages(struct file *file, struct } static int +ext2_write_begin(struct file *file, struct address_space *mapping, + loff_t pos, unsigned len, int intr, + struct page **pagep, void **fsdata) +{ + *pagep = NULL; + return block_write_begin(file, mapping, pos, len, intr, pagep, fsdata, + ext2_get_block); +} + +static int ext2_prepare_write(struct file *file, struct page *page, unsigned from, unsigned to) { @@ -689,6 +699,8 @@ const struct address_space_operations ex .readpages = ext2_readpages, .writepage = ext2_writepage, .sync_page = block_sync_page, + .write_begin = ext2_write_begin, + .write_end = block_write_end, .prepare_write = ext2_prepare_write, .commit_write = generic_commit_write, .bmap = ext2_bmap, - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html