cifs_buf_release(pSMB); 
cifs_small_buf_release(pSMB); 
CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size,                    __u16 fid, __u32 pid_of_opener, int SetAllocation){	struct smb_com_transaction2_sfi_req *pSMB  = NULL;	struct smb_com_transaction2_sfi_rsp *pSMBr = NULL;	char *data_offset;	struct file_end_of_file_info *parm_data;	int rc = 0;	int bytes_returned = 0;	__u16 params, param_offset, offset, byte_count, count;	cFYI(1, ("SetFileSize (via SetFileInfo) %lld",			(long long)size));	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,		      (void **) &pSMBr);	if (rc)		return rc;	pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);	pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));    	params = 6;	pSMB->MaxSetupCount = 0;	pSMB->Reserved = 0;	pSMB->Flags = 0;	pSMB->Timeout = 0;	pSMB->Reserved2 = 0;	param_offset = offsetof(struct smb_com_transaction2_sfi_req, Fid) - 4;	offset = param_offset + params;	data_offset = (char *) (&pSMB->hdr.Protocol) + offset;		count = sizeof(struct file_end_of_file_info);	pSMB->MaxParameterCount = cpu_to_le16(2);	pSMB->MaxDataCount = cpu_to_le16(1000);	/* BB find max SMB PDU from sess */	pSMB->SetupCount = 1;	pSMB->Reserved3 = 0;	pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION);	byte_count = 3 /* pad */  + params + count;	pSMB->DataCount = cpu_to_le16(count);	pSMB->ParameterCount = cpu_to_le16(params);	pSMB->TotalDataCount = pSMB->DataCount;	pSMB->TotalParameterCount = pSMB->ParameterCount;	pSMB->ParameterOffset = cpu_to_le16(param_offset);	parm_data =		(struct file_end_of_file_info *) (((char *) &pSMB->hdr.Protocol) +			offset);	pSMB->DataOffset = cpu_to_le16(offset);	parm_data->FileSize = cpu_to_le64(size);	pSMB->Fid = fid;	if(SetAllocation) {		if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)			pSMB->InformationLevel =				cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO2);		else			pSMB->InformationLevel =				cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO);	} else /* Set File Size */  {    	    if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)		    pSMB->InformationLevel =		        cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO2);	    else		    pSMB->InformationLevel =		        cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO);	}	pSMB->Reserved4 = 0;	pSMB->hdr.smb_buf_length += byte_count;	pSMB->ByteCount = cpu_to_le16(byte_count);	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,			 (struct smb_hdr *) pSMBr, &bytes_returned, 0);	if (rc) {		cFYI(1,		     ("Send error in SetFileInfo (SetFileSize) = %d",		      rc));	}	if (pSMB)		cifs_buf_release(pSMB);	/* Note: On -EAGAIN error only caller can retry on handle based calls 		since file handle passed in no longer valid */	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/cd63499cbe37e53e6cc084c8a35d911a4613c797/cifssmb.c/clean/fs/cifs/cifssmb.c