mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
locks: Cleanup lm_compare_owner and lm_owner_key
After the update to use nlm_lockowners for the NLM server, there are no more users of lm_compare_owner and lm_owner_key. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
committed by
J. Bruce Fields
parent
646d73e91b
commit
f85d93385e
@@ -658,9 +658,6 @@ static inline int locks_overlap(struct file_lock *fl1, struct file_lock *fl2)
|
||||
*/
|
||||
static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2)
|
||||
{
|
||||
if (fl1->fl_lmops && fl1->fl_lmops->lm_compare_owner)
|
||||
return fl2->fl_lmops == fl1->fl_lmops &&
|
||||
fl1->fl_lmops->lm_compare_owner(fl1, fl2);
|
||||
return fl1->fl_owner == fl2->fl_owner;
|
||||
}
|
||||
|
||||
@@ -701,8 +698,6 @@ static void locks_delete_global_locks(struct file_lock *fl)
|
||||
static unsigned long
|
||||
posix_owner_key(struct file_lock *fl)
|
||||
{
|
||||
if (fl->fl_lmops && fl->fl_lmops->lm_owner_key)
|
||||
return fl->fl_lmops->lm_owner_key(fl);
|
||||
return (unsigned long)fl->fl_owner;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user