sync_file: get rid of internal reference count.
sync_file uses the reference count of the file, the internal kref was never getting moved past 1. We can reintroduce this if we decide we need it later. [airlied: fix buildbot warnings] Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com> Acked-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170413014144.637-2-airlied@gmail.com
This commit is contained in:

committed by
Gustavo Padovan

parent
2e38178e23
commit
d8f2ebaac6
@@ -14,7 +14,6 @@
|
||||
#define _LINUX_SYNC_FILE_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/kref.h>
|
||||
#include <linux/ktime.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/spinlock.h>
|
||||
@@ -24,7 +23,6 @@
|
||||
/**
|
||||
* struct sync_file - sync file to export to the userspace
|
||||
* @file: file representing this fence
|
||||
* @kref: reference count on fence.
|
||||
* @name: name of sync_file. Useful for debugging
|
||||
* @sync_file_list: membership in global file list
|
||||
* @wq: wait queue for fence signaling
|
||||
@@ -33,7 +31,6 @@
|
||||
*/
|
||||
struct sync_file {
|
||||
struct file *file;
|
||||
struct kref kref;
|
||||
char name[32];
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
struct list_head sync_file_list;
|
||||
|
Reference in New Issue
Block a user