Submitted By: Mario Fetka (mario dot fetka at gmail dot com) Date: 2009-01-27 Initial Package Version: 2.0.0.444 Origin: me Upstream Status: unknown Description: support >= 2.6.28 diff -Naur novfs-2.0.0.444.orig/inode.c novfs-2.0.0.444/inode.c --- novfs-2.0.0.444.orig/inode.c 2009-01-27 20:19:47.375095216 +0000 +++ novfs-2.0.0.444/inode.c 2009-01-27 20:18:27.000000000 +0000 @@ -246,8 +246,13 @@ .readpages = novfs_a_readpages, .writepage = novfs_a_writepage, .writepages = novfs_a_writepages, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) + .write_begin = novfs_a_prepare_write, + .write_end = novfs_a_commit_write, +#else .prepare_write = novfs_a_prepare_write, .commit_write = novfs_a_commit_write, +#endif .set_page_dirty = __set_page_dirty_nobuffers, .direct_IO = novfs_a_direct_IO, }; @@ -1887,7 +1892,11 @@ SetPageUptodate(page); unlock_page(page); if (!pagevec_add(plru_pvec, page)) + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) + __pagevec_lru_add_file(plru_pvec); + #else __pagevec_lru_add(plru_pvec); + #endif data += PAGE_CACHE_SIZE; } return; @@ -2383,7 +2392,11 @@ page_cache_release(page); } + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) + pagevec_lru_add_file(&lru_pvec); + #else pagevec_lru_add(&lru_pvec); + #endif kfree(rbuf); } else { retCode = -ENOMEM;