From: Christoph Hellwig Date: Sun, 13 Jul 2014 15:00:37 +0000 (+0200) Subject: locks: typedef fl_owner_t to void * X-Git-Tag: MMI-PSA29.97-13-9~11825^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17fa388ddceb89e9673d83d82cf28ef79e8225d5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git locks: typedef fl_owner_t to void * fl_owner_t is a cookie that can store all kinds of different pointers, so don't pretends it points to a file structure. For now just change the typedef, but as a follow on this will allow to get rids of lots of casts and eventually the typedef itself. Signed-off-by: Christoph Hellwig Signed-off-by: Jeff Layton --- diff --git a/include/linux/fs.h b/include/linux/fs.h index e11d60cc867b..2daccaf4b547 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -833,7 +833,7 @@ static inline struct file *get_file(struct file *f) * * Lockd stuffs a "host" pointer into this. */ -typedef struct files_struct *fl_owner_t; +typedef void *fl_owner_t; struct file_lock_operations { void (*fl_copy_lock)(struct file_lock *, struct file_lock *);