static int
spufs_new_file(struct super_block *sb, struct dentry *dentry,
- const struct file_operations *fops, int mode,
+ struct file_operations *fops, int mode,
struct spu_context *ctx)
{
static struct inode_operations spufs_file_iops = {
inode->i_gid = dir->i_gid;
inode->i_mode &= S_ISGID;
}
- ctx = alloc_spu_context();
+ ctx = alloc_spu_context(inode->i_mapping);
SPUFS_I(inode)->i_ctx = ctx;
if (!ctx)
goto out_iput;
.kill_sb = kill_litter_super,
};
-static int __init spufs_init(void)
+static int spufs_init(void)
{
int ret;
ret = -ENOMEM;
}
module_init(spufs_init);
-static void __exit spufs_exit(void)
+static void spufs_exit(void)
{
spu_sched_exit();
unregister_spu_syscalls(&spufs_calls);