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, 7 Oct 2014 18:06:12 +0000 (14:06 -0400)
commite6f5c78930e409f3a6b37f5484313a416359ac7f
treee5465ac34a9251be44276f135c8a4f0a5ba4d42e
parent0c637be884f5eaa0ee53396ea7686ec0de03d126
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