|
@@ -437,12 +437,8 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
|
|
|
|
|
|
event = retire ? FSCACHE_OBJECT_EV_RETIRE : FSCACHE_OBJECT_EV_RELEASE;
|
|
|
|
|
|
- /* detach pointers back to the netfs */
|
|
|
spin_lock(&cookie->lock);
|
|
|
|
|
|
- cookie->netfs_data = NULL;
|
|
|
- cookie->def = NULL;
|
|
|
-
|
|
|
/* break links with all the active objects */
|
|
|
while (!hlist_empty(&cookie->backing_objects)) {
|
|
|
object = hlist_entry(cookie->backing_objects.first,
|
|
@@ -465,6 +461,10 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
|
|
|
BUG();
|
|
|
}
|
|
|
|
|
|
+ /* detach pointers back to the netfs */
|
|
|
+ cookie->netfs_data = NULL;
|
|
|
+ cookie->def = NULL;
|
|
|
+
|
|
|
spin_unlock(&cookie->lock);
|
|
|
|
|
|
if (cookie->parent) {
|