[CIFS] fix saving of resume key before CIFSFindNext
commita364bc0b37f14ffd66c1f982af42990a9d77fa43
authorJeff Layton <sfrench@us.ibm.com>
Tue, 21 Oct 2008 14:42:13 +0000 (21 14:42 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 21 Oct 2008 14:42:13 +0000 (21 14:42 +0000)
tree1e1e039a630b49942ec0e997b084ae8fc2a60fa1
parent14121bdccc17b8c0e4368a9c0e4f82c3dd47f240
[CIFS] fix saving of resume key before CIFSFindNext

We recently fixed the cifs readdir code so that it saves the resume key
before calling CIFSFindNext. Unfortunately, this assumes that we have
just done a CIFSFindFirst (or FindNext) and have resume info to save.
This isn't necessarily the case. Fix the code to save resume info if we
had to reinitiate the search, and after a FindNext.

This fixes connectathon basic test6 against NetApp filers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/readdir.c