locks: fix setlease methods to free passed-in lock
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 30 Oct 2010 21:31:15 +0000 (17:31 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 31 Oct 2010 01:08:15 +0000 (18:08 -0700)
commit05fa3135fdc7b9b510b502a35b6b97d2b38c6f48
treed533e8112111202ae890b2061c0386669002d080
parent096657b65e1ac197e20be5ce7cff6b6ca2532787
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 <swhiteho@redhat.com>
Cc: Steve French <sfrench@samba.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/cifsfs.c
fs/gfs2/file.c
fs/locks.c
fs/nfs/file.c
include/linux/fs.h