return newfid; 
return ERR_PTR(newfid); 
static struct super_block *v9fs_get_sb(struct file_system_type				       *fs_type, int flags,				       const char *dev_name, void *data){	struct super_block *sb = NULL;	struct v9fs_fcall *fcall = NULL;	struct inode *inode = NULL;	struct dentry *root = NULL;	struct v9fs_session_info *v9ses = NULL;	struct v9fs_fid *root_fid = NULL;	int mode = S_IRWXUGO | S_ISVTX;	uid_t uid = current->fsuid;	gid_t gid = current->fsgid;	int stat_result = 0;	int newfid = 0;	int retval = 0;	dprintk(DEBUG_VFS, " \n");	v9ses = kcalloc(1, sizeof(struct v9fs_session_info), GFP_KERNEL);	if (!v9ses)		return ERR_PTR(-ENOMEM);	if ((newfid = v9fs_session_init(v9ses, dev_name, data)) < 0) {		dprintk(DEBUG_ERROR, "problem initiating session\n");		return newfid;	}	sb = sget(fs_type, NULL, v9fs_set_super, v9ses);	v9fs_fill_super(sb, v9ses, flags);	inode = v9fs_get_inode(sb, S_IFDIR | mode);	if (IS_ERR(inode)) {		retval = PTR_ERR(inode);		goto put_back_sb;	}	inode->i_uid = uid;	inode->i_gid = gid;	root = d_alloc_root(inode);	if (!root) {		retval = -ENOMEM;		goto put_back_sb;	}	sb->s_root = root;	stat_result = v9fs_t_stat(v9ses, newfid, &fcall);	if (stat_result < 0) {		dprintk(DEBUG_ERROR, "stat error\n");		v9fs_t_clunk(v9ses, newfid, NULL);		v9fs_put_idpool(newfid, &v9ses->fidpool);	} else {		/* Setup the Root Inode */		root_fid = v9fs_fid_create(root, v9ses, newfid, 0);		if (root_fid == NULL) {			retval = -ENOMEM;			goto put_back_sb;		}		root_fid->qid = fcall->params.rstat.stat->qid;		root->d_inode->i_ino =		    v9fs_qid2ino(&fcall->params.rstat.stat->qid);		v9fs_mistat2inode(fcall->params.rstat.stat, root->d_inode, sb);	}	kfree(fcall);	if (stat_result < 0) {		retval = stat_result;		goto put_back_sb;	}	return sb;put_back_sb:	/* deactivate_super calls v9fs_kill_super which will frees the rest */	up_write(&sb->s_umount);	deactivate_super(sb);	return ERR_PTR(retval);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/192eaa28ba7b44485e521df7ba7a2ccbc4cc4d13/vfs_super.c/clean/fs/9p/vfs_super.c