mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
0c637be884
commit
e6f5c78930
7 changed files with 37 additions and 26 deletions
|
|
@ -1081,12 +1081,14 @@ EXPORT_SYMBOL(alloc_anon_inode);
|
|||
* @filp: file pointer
|
||||
* @arg: type of lease to obtain
|
||||
* @flp: new lease supplied for insertion
|
||||
* @priv: private data for lm_setup operation
|
||||
*
|
||||
* Generic helper for filesystems that do not wish to allow leases to be set.
|
||||
* All arguments are ignored and it just returns -EINVAL.
|
||||
*/
|
||||
int
|
||||
simple_nosetlease(struct file *filp, long arg, struct file_lock **flp)
|
||||
simple_nosetlease(struct file *filp, long arg, struct file_lock **flp,
|
||||
void **priv)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue