diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2009-04-28 10:56:37 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2009-04-28 10:56:37 -0400 |
commit | 2106cb18930312af9325d3418e138569c5b903cc (patch) | |
tree | 445ab0ce12d2fbb87513d1b4ef076cf844428ce3 /fs/fuse/dir.c | |
parent | da5e4714578ff323f7a61af490fc3539e68f188b (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.c | 2 |
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; |