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/fuse_i.h | |
parent | 2e38bea99a80eab408adee27f873a188d57b76cb (diff) | |
download | linux-267d84449f52349ee252db684ed95ede18e51744.tar.gz linux-267d84449f52349ee252db684ed95ede18e51744.tar.bz2 linux-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/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 91307940c8ac..83f797271aef 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -732,7 +732,6 @@ void fuse_read_fill(struct fuse_req *req, struct file *file, int fuse_open_common(struct inode *inode, struct file *file, bool isdir); struct fuse_file *fuse_file_alloc(struct fuse_conn *fc); -struct fuse_file *fuse_file_get(struct fuse_file *ff); void fuse_file_free(struct fuse_file *ff); void fuse_finish_open(struct inode *inode, struct file *file); |