aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/file.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-12-05 21:24:00 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-12-05 21:24:00 +0000
commit6498819f7c2c86df07efa02e27c1bc1c8ce0076a (patch)
tree4b3bf4dfab1248c9f71232542d2cdec64ca87838 /kernel/file.c
parent799993c4b7c096c3d131515b127628d8329e395f (diff)
downloadlibfuse-6498819f7c2c86df07efa02e27c1bc1c8ce0076a.tar.gz
fix
Diffstat (limited to 'kernel/file.c')
-rw-r--r--kernel/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/file.c b/kernel/file.c
index bb1da5a..11a7ee8 100644
--- a/kernel/file.c
+++ b/kernel/file.c
@@ -12,7 +12,6 @@
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
-#include <linux/rmap.h>
#ifdef KERNEL_2_6
#include <linux/writeback.h>
#include <linux/moduleparam.h>
@@ -742,6 +741,7 @@ static ssize_t fuse_file_read(struct file *file, char __user *buf,
#ifndef KERNEL_2_6
else {
if (fc->flags & FUSE_LARGE_READ) {
+ int res;
down(&inode->i_sem);
res = fuse_file_bigread(file, inode, *ppos, count);
up(&inode->i_sem);