CIFS: Fix wrong restart readdir for SMB1
authorPavel Shilovsky <pshilovsky@samba.org>
Tue, 26 Aug 2014 15:04:44 +0000 (19:04 +0400)
committerSteve French <smfrench@gmail.com>
Mon, 25 Aug 2014 21:44:28 +0000 (16:44 -0500)
commitf736906a7669a77cf8cabdcbcf1dc8cb694e12ef
tree245524ab7b74c560b777b0589f0af9e2f66ef066
parenta07d322059db66b84c9eb4f98959df468e88b34b
CIFS: Fix wrong restart readdir for SMB1

The existing code calls server->ops->close() that is not
right. This causes XFS test generic/310 to fail. Fix this
by using server->ops->closedir() function.

Cc: <stable@vger.kernel.org> # v3.7+
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/readdir.c