diff options
author | Tejun Heo <tj@kernel.org> | 2008-11-26 12:03:55 +0100 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-11-26 12:03:55 +0100 |
commit | acf99433d98c2570a619d8fb8b51abce4e532059 (patch) | |
tree | 3d8c6933448ad67c4343808113c7ee8f41050349 /fs/fuse/dir.c | |
parent | 59efec7b903987dcb60b9ebc85c7acd4443a11a1 (diff) | |
download | linux-acf99433d98c2570a619d8fb8b51abce4e532059.tar.gz linux-acf99433d98c2570a619d8fb8b51abce4e532059.tar.bz2 linux-acf99433d98c2570a619d8fb8b51abce4e532059.zip |
fuse: add file kernel handle
The file handle, fuse_file->fh, is opaque value supplied by userland
FUSE server and uniqueness is not guaranteed. Add file kernel handle,
fuse_file->kh, which is allocated by the kernel on file allocation and
guaranteed to be unique.
This will be used by poll to match notification to the respective file
but can be used for other purposes where unique file handle is
necessary.
Signed-off-by: Tejun Heo <tj@kernel.org>
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 9e7c5385699f..16ae55d347bb 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -408,7 +408,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode, goto out_put_forget_req; err = -ENOMEM; - ff = fuse_file_alloc(); + ff = fuse_file_alloc(fc); if (!ff) goto out_put_request; |