aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/lockd/lockd.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h
index d15595013051..acf39e1e3a3d 100644
--- a/include/linux/lockd/lockd.h
+++ b/include/linux/lockd/lockd.h
@@ -219,8 +219,7 @@ void nlmsvc_mark_resources(void);
219void nlmsvc_free_host_resources(struct nlm_host *); 219void nlmsvc_free_host_resources(struct nlm_host *);
220void nlmsvc_invalidate_all(void); 220void nlmsvc_invalidate_all(void);
221 221
222static __inline__ struct inode * 222static inline struct inode *nlmsvc_file_inode(struct nlm_file *file)
223nlmsvc_file_inode(struct nlm_file *file)
224{ 223{
225 return file->f_file->f_path.dentry->d_inode; 224 return file->f_file->f_path.dentry->d_inode;
226} 225}
@@ -228,8 +227,8 @@ nlmsvc_file_inode(struct nlm_file *file)
228/* 227/*
229 * Compare two host addresses (needs modifying for ipv6) 228 * Compare two host addresses (needs modifying for ipv6)
230 */ 229 */
231static __inline__ int 230static inline int nlm_cmp_addr(const struct sockaddr_in *sin1,
232nlm_cmp_addr(const struct sockaddr_in *sin1, const struct sockaddr_in *sin2) 231 const struct sockaddr_in *sin2)
233{ 232{
234 return sin1->sin_addr.s_addr == sin2->sin_addr.s_addr; 233 return sin1->sin_addr.s_addr == sin2->sin_addr.s_addr;
235} 234}
@@ -238,8 +237,8 @@ nlm_cmp_addr(const struct sockaddr_in *sin1, const struct sockaddr_in *sin2)
238 * Compare two NLM locks. 237 * Compare two NLM locks.
239 * When the second lock is of type F_UNLCK, this acts like a wildcard. 238 * When the second lock is of type F_UNLCK, this acts like a wildcard.
240 */ 239 */
241static __inline__ int 240static inline int nlm_compare_locks(const struct file_lock *fl1,
242nlm_compare_locks(const struct file_lock *fl1, const struct file_lock *fl2) 241 const struct file_lock *fl2)
243{ 242{
244 return fl1->fl_pid == fl2->fl_pid 243 return fl1->fl_pid == fl2->fl_pid
245 && fl1->fl_owner == fl2->fl_owner 244 && fl1->fl_owner == fl2->fl_owner