diff options
| -rw-r--r-- | include/linux/lockd/lockd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index c15373894a42..b37dee3acaba 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
| @@ -355,7 +355,8 @@ static inline int nlm_privileged_requester(const struct svc_rqst *rqstp) | |||
| 355 | static inline int nlm_compare_locks(const struct file_lock *fl1, | 355 | static inline int nlm_compare_locks(const struct file_lock *fl1, |
| 356 | const struct file_lock *fl2) | 356 | const struct file_lock *fl2) |
| 357 | { | 357 | { |
| 358 | return fl1->fl_pid == fl2->fl_pid | 358 | return file_inode(fl1->fl_file) == file_inode(fl2->fl_file) |
| 359 | && fl1->fl_pid == fl2->fl_pid | ||
| 359 | && fl1->fl_owner == fl2->fl_owner | 360 | && fl1->fl_owner == fl2->fl_owner |
| 360 | && fl1->fl_start == fl2->fl_start | 361 | && fl1->fl_start == fl2->fl_start |
| 361 | && fl1->fl_end == fl2->fl_end | 362 | && fl1->fl_end == fl2->fl_end |
