CIFS: Fix wrong restart readdir for SMB1
authorPavel Shilovsky <pshilovsky@samba.org>
Tue, 26 Aug 2014 15:04:44 +0000 (19:04 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:04:01 +0000 (09:04 -0700)
commit659c639916aabca0165fbd9f8a966055a519e44b
treea01f06cb4912b62149f8a817c04bdc441c4f9efc
parent0c17ceb6f88f685e8a23019052891a198434aba8
CIFS: Fix wrong restart readdir for SMB1

commit f736906a7669a77cf8cabdcbcf1dc8cb694e12ef upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/readdir.c