]> git.baikalelectronics.ru Git - kernel.git/commit
CacheFiles: Don't try to dump the index key if the cookie has been cleared
authorDavid Howells <dhowells@redhat.com>
Fri, 20 Sep 2013 13:18:00 +0000 (14:18 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Sep 2013 22:15:43 +0000 (15:15 -0700)
commit2fd43748105d218f99b4f6b715a2131382cb13b9
tree772fa3f7e42fc4a01c2a1a25876c0446fee1b0ba
parent2c1e747e6404d6ddcf9c7d13ad3c39206d4602a9
CacheFiles: Don't try to dump the index key if the cookie has been cleared

Don't try to dump the index key that distinguishes an object if netfs
data in the cookie the object refers to has been cleared (ie.  the
cookie has passed most of the way through
__fscache_relinquish_cookie()).

Since the netfs holds the index key, we can't get at it once the ->def
and ->netfs_data pointers have been cleared - and a NULL pointer
exception will ensue, usually just after a:

CacheFiles: Error: Unexpected object collision

error is reported.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cachefiles/namei.c