diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-22 20:08:25 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-22 20:08:25 +0100 |
commit | 267d84449f52349ee252db684ed95ede18e51744 (patch) | |
tree | 9ed80653721635aabd7dcb425b5779a7c33eddff /fs/fuse/dir.c | |
parent | 2e38bea99a80eab408adee27f873a188d57b76cb (diff) | |
download | lwn-267d84449f52349ee252db684ed95ede18e51744.tar.gz lwn-267d84449f52349ee252db684ed95ede18e51744.zip |
fuse: cleanup fuse_file refcounting
struct fuse_file is stored in file->private_data. Make this always be a
counting reference for consistency.
This also allows fuse_sync_release() to call fuse_file_put() instead of
partially duplicating its functionality.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
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 811fd8929a18..e816166ce42f 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -473,7 +473,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, if (err) { fuse_sync_release(ff, flags); } else { - file->private_data = fuse_file_get(ff); + file->private_data = ff; fuse_finish_open(inode, file); } return err; |