summaryrefslogtreecommitdiff
path: root/include/linux/sync_file.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-04-13 11:41:38 +1000
committerGustavo Padovan <gustavo.padovan@collabora.com>2017-04-18 10:27:38 -0300
commitd8f2ebaac650dc35db3bf5cf10e8ee1115b455f8 (patch)
tree090060672c15542296e506200bac6e71d566eae2 /include/linux/sync_file.h
parent2e38178e23e63b193654af9a11bb4a3cb4b999a5 (diff)
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
Diffstat (limited to 'include/linux/sync_file.h')
-rw-r--r--include/linux/sync_file.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/sync_file.h b/include/linux/sync_file.h
index 3e3ab84fc4cd..d37beefdfbd5 100644
--- a/include/linux/sync_file.h
+++ b/include/linux/sync_file.h
@@ -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;