diff options
author | Tejun Heo <tj@kernel.org> | 2008-11-26 06:03:55 -0500 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-11-26 06:03:55 -0500 |
commit | acf99433d98c2570a619d8fb8b51abce4e532059 (patch) | |
tree | 3d8c6933448ad67c4343808113c7ee8f41050349 /fs/fuse/inode.c | |
parent | 59efec7b903987dcb60b9ebc85c7acd4443a11a1 (diff) |
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/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index fa474989ec76..0e15bc221d23 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -485,6 +485,7 @@ static struct fuse_conn *new_conn(struct super_block *sb) | |||
485 | fc->bdi.unplug_io_fn = default_unplug_io_fn; | 485 | fc->bdi.unplug_io_fn = default_unplug_io_fn; |
486 | /* fuse does it's own writeback accounting */ | 486 | /* fuse does it's own writeback accounting */ |
487 | fc->bdi.capabilities = BDI_CAP_NO_ACCT_WB; | 487 | fc->bdi.capabilities = BDI_CAP_NO_ACCT_WB; |
488 | fc->khctr = 0; | ||
488 | fc->dev = sb->s_dev; | 489 | fc->dev = sb->s_dev; |
489 | err = bdi_init(&fc->bdi); | 490 | err = bdi_init(&fc->bdi); |
490 | if (err) | 491 | if (err) |