]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/9p/vfs_addr.c
mm: change invalidatepage prototype to accept length
[mirror_ubuntu-bionic-kernel.git] / fs / 9p / vfs_addr.c
index 0ad61c6a65a5b1964b373432f5e9bf9b031f6d38..9ff073f4090afee750e4058129427d4bd6f6117f 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/pagemap.h>
 #include <linux/idr.h>
 #include <linux/sched.h>
+#include <linux/aio.h>
 #include <net/9p/9p.h>
 #include <net/9p/client.h>
 
@@ -147,13 +148,14 @@ static int v9fs_release_page(struct page *page, gfp_t gfp)
  * @offset: offset in the page
  */
 
-static void v9fs_invalidate_page(struct page *page, unsigned long offset)
+static void v9fs_invalidate_page(struct page *page, unsigned int offset,
+                                unsigned int length)
 {
        /*
         * If called with zero offset, we should release
         * the private state assocated with the page
         */
-       if (offset == 0)
+       if (offset == 0 && length == PAGE_CACHE_SIZE)
                v9fs_fscache_invalidate_page(page);
 }