You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user