From: Christoph Hellwig Subject: [PATCH 1/2] locks: typedef fl_owner_t to void * Date: Sun, 13 Jul 2014 17:00:37 +0200 Message-ID: <1405263638-13986-2-git-send-email-hch@lst.de> References: <1405263638-13986-1-git-send-email-hch@lst.de> Cc: linux-fsdevel@vger.kernel.org To: Jeff Layton Return-path: Received: from casper.infradead.org ([85.118.1.10]:47898 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753725AbaGMO61 (ORCPT ); Sun, 13 Jul 2014 10:58:27 -0400 In-Reply-To: <1405263638-13986-1-git-send-email-hch@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 7ae6f48..dabd5e4 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 *); -- 1.9.1