diff options
Diffstat (limited to 'include/linux/lockd/lockd.h')
| -rw-r--r-- | include/linux/lockd/lockd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 4fd95dbeb52f..b065ef406770 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
| @@ -299,7 +299,7 @@ int nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr); | |||
| 299 | 299 | ||
| 300 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) | 300 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) |
| 301 | { | 301 | { |
| 302 | return file_inode(file->f_file); | 302 | return locks_inode(file->f_file); |
| 303 | } | 303 | } |
| 304 | 304 | ||
| 305 | static inline int __nlm_privileged_request4(const struct sockaddr *sap) | 305 | static inline int __nlm_privileged_request4(const struct sockaddr *sap) |
| @@ -359,7 +359,7 @@ static inline int nlm_privileged_requester(const struct svc_rqst *rqstp) | |||
| 359 | static inline int nlm_compare_locks(const struct file_lock *fl1, | 359 | static inline int nlm_compare_locks(const struct file_lock *fl1, |
| 360 | const struct file_lock *fl2) | 360 | const struct file_lock *fl2) |
| 361 | { | 361 | { |
| 362 | return file_inode(fl1->fl_file) == file_inode(fl2->fl_file) | 362 | return locks_inode(fl1->fl_file) == locks_inode(fl2->fl_file) |
| 363 | && fl1->fl_pid == fl2->fl_pid | 363 | && fl1->fl_pid == fl2->fl_pid |
| 364 | && fl1->fl_owner == fl2->fl_owner | 364 | && fl1->fl_owner == fl2->fl_owner |
| 365 | && fl1->fl_start == fl2->fl_start | 365 | && fl1->fl_start == fl2->fl_start |
