mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
locks: change lm_get_owner and lm_put_owner prototypes
The current prototypes for these operations are somewhat awkward as they deal with fl_owners but take struct file_lock arguments. In the future, we'll want to be able to take references without necessarily dealing with a struct file_lock. Change them to take fl_owner_t arguments instead and have the callers deal with assigning the values to the file_lock structs. Signed-off-by: Jeff Layton <[email protected]>
This commit is contained in:
parent
5c1c669a1b
commit
cae80b305e
3 changed files with 17 additions and 13 deletions
|
|
@ -276,8 +276,10 @@ void locks_release_private(struct file_lock *fl)
|
|||
}
|
||||
|
||||
if (fl->fl_lmops) {
|
||||
if (fl->fl_lmops->lm_put_owner)
|
||||
fl->fl_lmops->lm_put_owner(fl);
|
||||
if (fl->fl_lmops->lm_put_owner) {
|
||||
fl->fl_lmops->lm_put_owner(fl->fl_owner);
|
||||
fl->fl_owner = NULL;
|
||||
}
|
||||
fl->fl_lmops = NULL;
|
||||
}
|
||||
}
|
||||
|
|
@ -333,7 +335,7 @@ void locks_copy_conflock(struct file_lock *new, struct file_lock *fl)
|
|||
|
||||
if (fl->fl_lmops) {
|
||||
if (fl->fl_lmops->lm_get_owner)
|
||||
fl->fl_lmops->lm_get_owner(new, fl);
|
||||
fl->fl_lmops->lm_get_owner(fl->fl_owner);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(locks_copy_conflock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue