aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJeff Layton <jeff.layton@primarydata.com>2016-01-07 15:08:51 -0500
committerJeff Layton <jeff.layton@primarydata.com>2016-01-08 11:38:19 -0500
commitf27a0fe083bf46fef0d7045aa2e9a7e56e72d8d8 (patch)
tree57f4d3ceb4b1f6ef1f5121a1583a129ebb8846b4 /include/linux/fs.h
parentlocks: sprinkle some tracepoints around the file locking code (diff)
downloadlinux-dev-f27a0fe083bf46fef0d7045aa2e9a7e56e72d8d8.tar.xz
linux-dev-f27a0fe083bf46fef0d7045aa2e9a7e56e72d8d8.zip
locks: pass inode pointer to locks_free_lock_context
...so we can print information about it if there are leaked locks. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Acked-by: "J. Bruce Fields" <bfields@fieldses.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index cbf08d5c246e..6c4983aceb02 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1042,7 +1042,7 @@ extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
extern int fcntl_getlease(struct file *filp);
/* fs/locks.c */
-void locks_free_lock_context(struct file_lock_context *ctx);
+void locks_free_lock_context(struct inode *inode);
void locks_free_lock(struct file_lock *fl);
extern void locks_init_lock(struct file_lock *);
extern struct file_lock * locks_alloc_lock(void);
@@ -1103,7 +1103,7 @@ static inline int fcntl_getlease(struct file *filp)
}
static inline void
-locks_free_lock_context(struct file_lock_context *ctx)
+locks_free_lock_context(struct inode *inode)
{
}