Displaying 1 result from an estimated 1 matches for "ocfs_foreach_child".
2004 Jun 14
0
[PATCH] dcache.c polishing
...static int ocfs_empty_func(struct dentry *dentry, void *ignore)
-{
- return 1;
}
-
-/*
- * ocfs_empty()
- *
- */
-int ocfs_empty (struct dentry *dentry)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+static int ocfs_dentry_revalidate(struct dentry *dentry, struct nameidata *nd)
{
- return ocfs_foreach_child (dentry, ocfs_empty_func, NULL);
+ return ocfs_dentry_revalidate24(dentry, nd ? nd->flags : 0);
}
+struct dentry_operations ocfs_dentry_ops = {
+ .d_revalidate = ocfs_dentry_revalidate,
+};
+#else
+struct dentry_operations ocfs_dentry_ops = {
+ .d_revalidate = ocfs_dentry_revalidate24,
+};
+#...