[PATCH] spufs: fix build with shrunk struct dcache
From: Arnd Bergmann
Date: Mon Jan 09 2006 - 14:28:13 EST
spufs was merged at about the same time as Eric's
"shrink dcache struct" patch, so we need to fix up the
newly introduced reference to dentry->d_child.
Signed-off-by: Arnd Bergmann <arndb@xxxxxxxxxx>
--- linux-2.6.16-rc.orig/arch/powerpc/platforms/cell/spufs/inode.c
+++ linux-2.6.16-rc/arch/powerpc/platforms/cell/spufs/inode.c
@@ -138,7 +138,7 @@ static void spufs_prune_dir(struct dentr
{
struct dentry *dentry, *tmp;
down(&dir->d_inode->i_sem);
- list_for_each_entry_safe(dentry, tmp, &dir->d_subdirs, d_child) {
+ list_for_each_entry_safe(dentry, tmp, &dir->d_subdirs, d_u.d_child) {
spin_lock(&dcache_lock);
spin_lock(&dentry->d_lock);
if (!(d_unhashed(dentry)) && dentry->d_inode) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/