new helper: file_inode(file)
[linux-2.6-block.git] / arch / powerpc / platforms / cell / spufs / inode.c
index dba1ce235da59e23172cd5d6474d9ce4a72900ac..99db6161e5c9e3b09fbed062fb08d69d790cd3d4 100644 (file)
@@ -368,7 +368,7 @@ spufs_assert_affinity(unsigned int flags, struct spu_gang *gang,
                        return ERR_PTR(-EINVAL);
 
                neighbor = get_spu_context(
-                               SPUFS_I(filp->f_dentry->d_inode)->i_ctx);
+                               SPUFS_I(file_inode(filp))->i_ctx);
 
                if (!list_empty(&neighbor->aff_list) && !(neighbor->aff_head) &&
                    !list_is_last(&neighbor->aff_list, &gang->aff_list_head) &&