+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+static int ll_nfs_test_inode(struct inode *inode, unsigned long ino,
+ void *opaque)
+#else
+static int ll_nfs_test_inode(struct inode *inode, void *opaque)
+#endif
+{
+ struct lustre_id *iid = opaque;
+
+ if (inode->i_ino == id_ino(iid) &&
+ inode->i_generation == id_gen(iid))
+ return 1;
+
+ return 0;
+}