struct v9fs_fid *fid = v9fs_fid_lookup(dentry, FID_OP); 
struct v9fs_fid *fid = v9fs_fid_lookup(dentry); 
static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr){	struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dentry->d_inode);	struct v9fs_fid *fid = v9fs_fid_lookup(dentry, FID_OP);	struct v9fs_fcall *fcall = NULL;	struct v9fs_stat *mistat = kmalloc(v9ses->maxdata, GFP_KERNEL);	int res = -EPERM;	dprintk(DEBUG_VFS, "\n");	if (!mistat)		return -ENOMEM;	if (!fid) {		dprintk(DEBUG_ERROR,			"Couldn't find fid associated with dentry\n");		return -EBADF;	}	v9fs_blank_mistat(v9ses, mistat);	if (iattr->ia_valid & ATTR_MODE)		mistat->mode = unixmode2p9mode(v9ses, iattr->ia_mode);	if (iattr->ia_valid & ATTR_MTIME)		mistat->mtime = iattr->ia_mtime.tv_sec;	if (iattr->ia_valid & ATTR_ATIME)		mistat->atime = iattr->ia_atime.tv_sec;	if (iattr->ia_valid & ATTR_SIZE)		mistat->length = iattr->ia_size;	if (v9ses->extended) {		char *ptr = mistat->data+1;		if (iattr->ia_valid & ATTR_UID) {			mistat->uid = ptr;			ptr += 1+sprintf(ptr, "%08x", iattr->ia_uid);			mistat->n_uid = iattr->ia_uid;		}		if (iattr->ia_valid & ATTR_GID) {			mistat->gid = ptr;			ptr += 1+sprintf(ptr, "%08x", iattr->ia_gid);			mistat->n_gid = iattr->ia_gid;		}	}	res = v9fs_t_wstat(v9ses, fid->fid, mistat, &fcall);	if (res < 0)		dprintk(DEBUG_ERROR, "wstat error: %s\n", FCALL_ERROR(fcall));	kfree(mistat);	kfree(fcall);	if (res >= 0)		res = inode_setattr(dentry->d_inode, iattr);	return res;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0b8dd17762194ec77066d339e0b2866b0c66b715/vfs_inode.c/buggy/fs/9p/vfs_inode.c