new helper: file_inode(file)
[linux-2.6-block.git] / include / linux / lockd / lockd.h
index f5a051a79273c7f3fcdb1a18f4c9e2522e68cc85..0e62d84f9f7ffcaaa8c472aa5da3e373705d76e5 100644 (file)
@@ -291,7 +291,7 @@ int           nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr);
 
 static inline struct inode *nlmsvc_file_inode(struct nlm_file *file)
 {
-       return file->f_file->f_path.dentry->d_inode;
+       return file_inode(file->f_file);
 }
 
 static inline int __nlm_privileged_request4(const struct sockaddr *sap)