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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user