aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2009-04-28 10:56:37 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2009-04-28 10:56:37 -0400
commit2106cb18930312af9325d3418e138569c5b903cc (patch)
tree445ab0ce12d2fbb87513d1b4ef076cf844428ce3 /fs/fuse/dir.c
parentda5e4714578ff323f7a61af490fc3539e68f188b (diff)
fuse: don't use inode in helpers called by fuse_direct_io()
Use ff->fc and ff->nodeid instead of passing down the inode. This prepares this function for use by CUSE, where the inode is not owned by a fuse filesystem. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r--fs/fuse/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 8b8eebc5614b..222584b34ce4 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -1035,7 +1035,7 @@ static int fuse_readdir(struct file *file, void *dstbuf, filldir_t filldir)
1035 req->out.argpages = 1; 1035 req->out.argpages = 1;
1036 req->num_pages = 1; 1036 req->num_pages = 1;
1037 req->pages[0] = page; 1037 req->pages[0] = page;
1038 fuse_read_fill(req, file, inode, file->f_pos, PAGE_SIZE, FUSE_READDIR); 1038 fuse_read_fill(req, file, file->f_pos, PAGE_SIZE, FUSE_READDIR);
1039 fuse_request_send(fc, req); 1039 fuse_request_send(fc, req);
1040 nbytes = req->out.args[0].size; 1040 nbytes = req->out.args[0].size;
1041 err = req->out.h.error; 1041 err = req->out.h.error;