diff options
-rw-r--r-- | fs/fscache/cookie.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c index d705125665f0..98d22f495cd8 100644 --- a/fs/fscache/cookie.c +++ b/fs/fscache/cookie.c | |||
@@ -602,7 +602,8 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire) | |||
602 | atomic_read(&cookie->n_active), retire); | 602 | atomic_read(&cookie->n_active), retire); |
603 | 603 | ||
604 | /* No further netfs-accessing operations on this cookie permitted */ | 604 | /* No further netfs-accessing operations on this cookie permitted */ |
605 | set_bit(FSCACHE_COOKIE_RELINQUISHED, &cookie->flags); | 605 | if (test_and_set_bit(FSCACHE_COOKIE_RELINQUISHED, &cookie->flags)) |
606 | BUG(); | ||
606 | 607 | ||
607 | __fscache_disable_cookie(cookie, retire); | 608 | __fscache_disable_cookie(cookie, retire); |
608 | 609 | ||