|
@@ -14,6 +14,7 @@
|
|
#include <linux/sched.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
#include <linux/compat.h>
|
|
#include <linux/compat.h>
|
|
|
|
+#include <linux/swap.h>
|
|
|
|
|
|
static const struct file_operations fuse_direct_io_file_operations;
|
|
static const struct file_operations fuse_direct_io_file_operations;
|
|
|
|
|
|
@@ -834,6 +835,8 @@ static ssize_t fuse_fill_write_pages(struct fuse_req *req,
|
|
pagefault_enable();
|
|
pagefault_enable();
|
|
flush_dcache_page(page);
|
|
flush_dcache_page(page);
|
|
|
|
|
|
|
|
+ mark_page_accessed(page);
|
|
|
|
+
|
|
if (!tmp) {
|
|
if (!tmp) {
|
|
unlock_page(page);
|
|
unlock_page(page);
|
|
page_cache_release(page);
|
|
page_cache_release(page);
|