Skip to contentSkip to conversation

spufs: fix build with shrunk struct dcache

PATCH New Arnd Bergmann 1 participant 1 message Jan 9, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spufs: fix build with shrunk struct dcache

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.

arch/powerpc/platforms/cell/spufs/inode.c +1 -1
@@ -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) {