mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
locks: fix setlease methods to free passed-in lock
We modified setlease to require the caller to allocate the new lease in the case of creating a new lease, but forgot to fix up the filesystem methods. Cc: Steven Whitehouse <[email protected]> Cc: Steve French <[email protected]> Cc: Trond Myklebust <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
096657b65e
commit
05fa3135fd
5 changed files with 11 additions and 3 deletions
|
|
@ -186,7 +186,7 @@ void locks_release_private(struct file_lock *fl)
|
|||
EXPORT_SYMBOL_GPL(locks_release_private);
|
||||
|
||||
/* Free a lock which is not in use. */
|
||||
static void locks_free_lock(struct file_lock *fl)
|
||||
void locks_free_lock(struct file_lock *fl)
|
||||
{
|
||||
BUG_ON(waitqueue_active(&fl->fl_wait));
|
||||
BUG_ON(!list_empty(&fl->fl_block));
|
||||
|
|
@ -195,6 +195,7 @@ static void locks_free_lock(struct file_lock *fl)
|
|||
locks_release_private(fl);
|
||||
kmem_cache_free(filelock_cache, fl);
|
||||
}
|
||||
EXPORT_SYMBOL(locks_free_lock);
|
||||
|
||||
void locks_init_lock(struct file_lock *fl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue