summaryrefslogtreecommitdiffstats
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-08-22 10:40:25 -0400
committerJeff Layton <jlayton@primarydata.com>2014-10-07 14:06:12 -0400
commite6f5c78930e409f3a6b37f5484313a416359ac7f (patch)
treee5465ac34a9251be44276f135c8a4f0a5ba4d42e /fs/libfs.c
parent0c637be884f5eaa0ee53396ea7686ec0de03d126 (diff)
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>
Diffstat (limited to 'fs/libfs.c')
-rw-r--r--fs/libfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index 29012a303ef8..171d2846f2a3 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -1081,12 +1081,14 @@ EXPORT_SYMBOL(alloc_anon_inode);
1081 * @filp: file pointer 1081 * @filp: file pointer
1082 * @arg: type of lease to obtain 1082 * @arg: type of lease to obtain
1083 * @flp: new lease supplied for insertion 1083 * @flp: new lease supplied for insertion
1084 * @priv: private data for lm_setup operation
1084 * 1085 *
1085 * Generic helper for filesystems that do not wish to allow leases to be set. 1086 * Generic helper for filesystems that do not wish to allow leases to be set.
1086 * All arguments are ignored and it just returns -EINVAL. 1087 * All arguments are ignored and it just returns -EINVAL.
1087 */ 1088 */
1088int 1089int
1089simple_nosetlease(struct file *filp, long arg, struct file_lock **flp) 1090simple_nosetlease(struct file *filp, long arg, struct file_lock **flp,
1091 void **priv)
1090{ 1092{
1091 return -EINVAL; 1093 return -EINVAL;
1092} 1094}