Message ID | 1408699931-22515-3-git-send-email-pshilovsky@samba.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 798c80a..58e413c 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c @@ -597,7 +597,7 @@ find_cifs_entry(const unsigned int xid, struct cifs_tcon *tcon, loff_t pos, cfile->invalidHandle = true; spin_unlock(&cifs_file_list_lock); if (server->ops->close) - server->ops->close(xid, tcon, &cfile->fid); + server->ops->close_dir(xid, tcon, &cfile->fid); } else spin_unlock(&cifs_file_list_lock); if (cfile->srch_inf.ntwrk_buf_start) {
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: Pavel Shilovsky <pshilovsky@samba.org> --- fs/cifs/readdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)