]> git.karo-electronics.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:26 +0000 (04:11 +0100)
commit61c0f23450473cda9d2d784ea778361095d50bc3
treede57fecdc722265c4083c70fca86f0278bdd2407
parent8e1e19fe1940b5b438273e92036964b1230b6766
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: Ben Hutchings <ben@decadent.org.uk>
fs/cifs/readdir.c