Skip to content

Commit 66aaf44

Browse files
Christoph Hellwigelektroschmock
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff Layton <[email protected]> Change-Id: I197cdfff4c84aa8fcb7a2f1c7952b54e8f679f8e
1 parent 077f0bc commit 66aaf44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ static inline int file_check_writeable(struct file *filp)
939939
*
940940
* Lockd stuffs a "host" pointer into this.
941941
*/
942-
typedef struct files_struct *fl_owner_t;
942+
typedef void *fl_owner_t;
943943

944944
struct file_lock_operations {
945945
void (*fl_copy_lock)(struct file_lock *, struct file_lock *);

0 commit comments

Comments
 (0)