]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: cleanup fuse_file refcounting
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 22 Feb 2017 19:08:25 +0000 (20:08 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 22 Feb 2017 19:08:25 +0000 (20:08 +0100)
commit6f72ce2f1defa90cd4121d89d27d13470b1d0b72
tree9ed80653721635aabd7dcb425b5779a7c33eddff
parent872a5ca16dd00257045cf78cea1702dfb44aded1
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>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h