Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168824
b: refs/heads/master
c: 7e311a2
h: refs/heads/master
v: v3
  • Loading branch information
David Howells committed Nov 19, 2009
1 parent 214ca9b commit 0293324
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52bd75fdb135d6133d878ae60c6e7e3f4ebc1cfc
refs/heads/master: 7e311a207d596b9273d811149d6e3e14f05ac4c0
8 changes: 4 additions & 4 deletions trunk/fs/fscache/cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 0293324

Please sign in to comment.