]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: always update the inode cache with the results from a FIND_*
authorJeff Layton <jlayton@redhat.com>
Fri, 6 Jul 2012 11:09:42 +0000 (07:09 -0400)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Sun, 7 Oct 2012 05:56:12 +0000 (22:56 -0700)
commitde559c4763db4d482339a1f2042493783113285f
treef4d2eddac6d37b025579d7c71a67f240ad1455ef
parent0ce77f88d6a7e337a0f872d866934aa251e035ea
cifs: always update the inode cache with the results from a FIND_*

commit cd60042cc1392e79410dc8de9e9c1abb38a29e57 upstream.

When we get back a FIND_FIRST/NEXT result, we have some info about the
dentry that we use to instantiate a new inode. We were ignoring and
discarding that info when we had an existing dentry in the cache.

Fix this by updating the inode in place when we find an existing dentry
and the uniqueid is the same.

Reported-and-Tested-by: Andrew Bartlett <abartlet@samba.org>
Reported-by: Bill Robertson <bill_robertson@debortoli.com.au>
Reported-by: Dion Edwards <dion_edwards@debortoli.com.au>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit adccea444c2df5660fff32fe75563075b7d237f7)

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
fs/cifs/readdir.c