]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add new function to get unicode string length in bytes
authorJeff Layton <jlayton@redhat.com>
Thu, 30 Apr 2009 10:46:32 +0000 (06:46 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 30 Apr 2009 15:45:00 +0000 (15:45 +0000)
commit8f73cdda5a9973a786e78c1c5ae6018e09919598
tree35e359acc85bef8669b001ccb412afb96d256a82
parent8bcb94f9612b88b0e1e7134faa64a4ef8350081b
cifs: add new function to get unicode string length in bytes

Working in units of words means we do a lot of unnecessary conversion back
and forth. Standardize on bytes instead since that's more useful for
allocating buffers and such. Also, remove hostlen_fromUCS since the new
function has a similar purpose.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_unicode.c
fs/cifs/cifs_unicode.h
fs/cifs/cifssmb.c