]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <smfrench@gmail.com>
Tue, 17 Jul 2012 04:57:23 +0000 (23:57 -0500)
commit84f28ae120d98cd3f016727b476775f04a62ce1d
treeed9ac9505a2e12e63b9a4a97f02790a59d69811b
parent2191eeb95d46aa43c57dfb6614f266a8cb513a0e
cifs: always update the inode cache with the results from a FIND_*

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.

Cc: <stable@vger.kernel.org> # .31.x
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>
fs/cifs/readdir.c