locks: plumb a "priv" pointer into the setlease routines
authorJeff Layton <jlayton@primarydata.com>
Fri, 22 Aug 2014 14:40:25 +0000 (10:40 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 9 Sep 2014 20:01:37 +0000 (16:01 -0400)
commit9b021e57bf34b0e46ce8debdd728086cf1dc0d06
tree0071248bf6abc61c8732c1d3b567619818c3ac9d
parent2f169bcf8e04af52804c9a17db6e9a3c46d56c7f
locks: plumb a "priv" pointer into the setlease routines

In later patches, we're going to add a new lock_manager_operation to
finish setting up the lease while still holding the i_lock.  To do
this, we'll need to pass a little bit of info in the fcntl setlease
case (primarily an fasync structure). Plumb the extra pointer into
there in advance of that.

We declare this pointer as a void ** to make it clear that this is
private info, and that the caller isn't required to set this unless
the lm_setup specifically requires it.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Documentation/filesystems/Locking
Documentation/filesystems/vfs.txt
fs/cifs/cifsfs.c
fs/libfs.c
fs/locks.c
fs/nfsd/nfs4state.c
include/linux/fs.h