diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-23 17:24:26 +0000 | 
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-24 23:45:32 +0000 | 
| commit | bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2 (patch) | |
| tree | 38d863507e900fb2ccac4c22fcf8934271c051b5 /fs/cifs/misc.c | |
| parent | a37f2f87edc1b6e5932becf6e51535d36b690f2a (diff) | |
| parent | 8e934dbf264418afe4d1dff34ce074ecc14280db (diff) | |
| download | olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.tar.xz olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.zip  | |
Merge branch 'drm-intel-fixes' into drm-intel-next
Merge important suspend and resume regression fixes and resolve the
small conflict.
Conflicts:
	drivers/gpu/drm/i915/i915_dma.c
Diffstat (limited to 'fs/cifs/misc.c')
| -rw-r--r-- | fs/cifs/misc.c | 73 | 
1 files changed, 1 insertions, 72 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 43f10281bc1..a09e077ba92 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -571,7 +571,7 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)  				pCifsInode = CIFS_I(netfile->dentry->d_inode);  				cifs_set_oplock_level(pCifsInode, -						      pSMB->OplockLevel); +					pSMB->OplockLevel ? OPLOCK_READ : 0);  				/*  				 * cifs_oplock_break_put() can't be called  				 * from here.  Get reference after queueing @@ -637,77 +637,6 @@ dump_smb(struct smb_hdr *smb_buf, int smb_buf_length)  	return;  } -/* Convert 16 bit Unicode pathname to wire format from string in current code -   page.  Conversion may involve remapping up the seven characters that are -   only legal in POSIX-like OS (if they are present in the string). Path -   names are little endian 16 bit Unicode on the wire */ -int -cifsConvertToUCS(__le16 *target, const char *source, int maxlen, -		 const struct nls_table *cp, int mapChars) -{ -	int i, j, charlen; -	int len_remaining = maxlen; -	char src_char; -	__u16 temp; - -	if (!mapChars) -		return cifs_strtoUCS(target, source, PATH_MAX, cp); - -	for (i = 0, j = 0; i < maxlen; j++) { -		src_char = source[i]; -		switch (src_char) { -			case 0: -				target[j] = 0; -				goto ctoUCS_out; -			case ':': -				target[j] = cpu_to_le16(UNI_COLON); -				break; -			case '*': -				target[j] = cpu_to_le16(UNI_ASTERIK); -				break; -			case '?': -				target[j] = cpu_to_le16(UNI_QUESTION); -				break; -			case '<': -				target[j] = cpu_to_le16(UNI_LESSTHAN); -				break; -			case '>': -				target[j] = cpu_to_le16(UNI_GRTRTHAN); -				break; -			case '|': -				target[j] = cpu_to_le16(UNI_PIPE); -				break; -			/* BB We can not handle remapping slash until -			   all the calls to build_path_from_dentry -			   are modified, as they use slash as separator BB */ -			/* case '\\': -				target[j] = cpu_to_le16(UNI_SLASH); -				break;*/ -			default: -				charlen = cp->char2uni(source+i, -					len_remaining, &temp); -				/* if no match, use question mark, which -				at least in some cases servers as wild card */ -				if (charlen < 1) { -					target[j] = cpu_to_le16(0x003f); -					charlen = 1; -				} else -					target[j] = cpu_to_le16(temp); -				len_remaining -= charlen; -				/* character may take more than one byte in the -				   the source string, but will take exactly two -				   bytes in the target string */ -				i += charlen; -				continue; -		} -		i++; /* move to next char in source string */ -		len_remaining--; -	} - -ctoUCS_out: -	return i; -} -  void  cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)  {  |