CIFS: Fix wrong filename length for SMB2
authorPavel Shilovsky <pshilovsky@samba.org>
Fri, 22 Aug 2014 09:32:11 +0000 (13:32 +0400)
committerSteve French <smfrench@gmail.com>
Mon, 25 Aug 2014 21:45:17 +0000 (16:45 -0500)
commit1bbe4997b13de903c421c1cc78440e544b5f9064
treebbb98099a72fddd841a64b570355fbe5584fb7db
parentf736906a7669a77cf8cabdcbcf1dc8cb694e12ef
CIFS: Fix wrong filename length for SMB2

The existing code uses the old MAX_NAME constant. This causes
XFS test generic/013 to fail. Fix it by replacing MAX_NAME with
PATH_MAX that SMB1 uses. Also remove an unused MAX_NAME constant
definition.

Cc: <stable@vger.kernel.org> # v3.7+
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/smb2file.c
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c