aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs/inode.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-03-26 11:18:44 -0400
committerIngo Molnar <mingo@kernel.org>2012-03-26 11:19:03 -0400
commit7fd52392c56361a40f0c630a82b36b95ca31eac6 (patch)
tree14091de24c6b28ea4cae9826f98aeedb7be091f5 /arch/powerpc/platforms/cell/spufs/inode.c
parentb01c3a0010aabadf745f3e7fdb9cab682e0a28a2 (diff)
parente22057c8599373e5caef0bc42bdb95d2a361ab0d (diff)
Merge branch 'linus' into perf/urgent
Merge reason: we need to fix a non-trivial merge conflict. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/inode.c')
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c
index d4a094ca96f3..1d75c92ea8fb 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -646,6 +646,7 @@ long spufs_create(struct path *path, struct dentry *dentry,
646 646
647out: 647out:
648 mutex_unlock(&path->dentry->d_inode->i_mutex); 648 mutex_unlock(&path->dentry->d_inode->i_mutex);
649 dput(dentry);
649 return ret; 650 return ret;
650} 651}
651 652
@@ -757,9 +758,9 @@ spufs_create_root(struct super_block *sb, void *data)
757 goto out_iput; 758 goto out_iput;
758 759
759 ret = -ENOMEM; 760 ret = -ENOMEM;
760 sb->s_root = d_alloc_root(inode); 761 sb->s_root = d_make_root(inode);
761 if (!sb->s_root) 762 if (!sb->s_root)
762 goto out_iput; 763 goto out;
763 764
764 return 0; 765 return 0;
765out_iput: 766out_iput:
@@ -828,19 +829,19 @@ static int __init spufs_init(void)
828 ret = spu_sched_init(); 829 ret = spu_sched_init();
829 if (ret) 830 if (ret)
830 goto out_cache; 831 goto out_cache;
831 ret = register_filesystem(&spufs_type); 832 ret = register_spu_syscalls(&spufs_calls);
832 if (ret) 833 if (ret)
833 goto out_sched; 834 goto out_sched;
834 ret = register_spu_syscalls(&spufs_calls); 835 ret = register_filesystem(&spufs_type);
835 if (ret) 836 if (ret)
836 goto out_fs; 837 goto out_syscalls;
837 838
838 spufs_init_isolated_loader(); 839 spufs_init_isolated_loader();
839 840
840 return 0; 841 return 0;
841 842
842out_fs: 843out_syscalls:
843 unregister_filesystem(&spufs_type); 844 unregister_spu_syscalls(&spufs_calls);
844out_sched: 845out_sched:
845 spu_sched_exit(); 846 spu_sched_exit();
846out_cache: 847out_cache: