2005-03-05 00:36:51

by Miklos Szeredi

[permalink] [raw]
Subject: [PATCH] FUSE: use generic_file_llseek

Hi Andrew!

This patch adds generic_file_llseek to fuse_file_operations and
fuse_dir_operations, replacing the implicit default_llseek.

Please Apply.

Thanks,
Miklos

Signed-off-by: Miklos Szeredi <[email protected]>

diff -rup linux-2.6.11-mm1/fs/fuse/dir.c linux-fuse/fs/fuse/dir.c
--- linux-2.6.11-mm1/fs/fuse/dir.c 2005-03-04 23:26:59.000000000 +0100
+++ linux-fuse/fs/fuse/dir.c 2005-03-04 23:32:36.000000000 +0100
@@ -894,6 +894,7 @@ static struct inode_operations fuse_dir_
};

static struct file_operations fuse_dir_operations = {
+ .llseek = generic_file_llseek,
.read = generic_read_dir,
.readdir = fuse_readdir,
.open = fuse_dir_open,
diff -rup linux-2.6.11-mm1/fs/fuse/file.c linux-fuse/fs/fuse/file.c
--- linux-2.6.11-mm1/fs/fuse/file.c 2005-03-04 23:26:59.000000000 +0100
+++ linux-fuse/fs/fuse/file.c 2005-03-04 23:32:36.000000000 +0100
@@ -517,6 +517,7 @@ static int fuse_set_page_dirty(struct pa
}

static struct file_operations fuse_file_operations = {
+ .llseek = generic_file_llseek,
.read = fuse_file_read,
.write = fuse_file_write,
.mmap = fuse_file_mmap,