VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Milosz Tanski <milosz@adfin.com> 2013-09-09 14:28:57 -0400 committer: Sage Weil <sage@inktank.com> 2013-09-10 09:04:46 -0700 commit: 9c89d62948c4740e379a7e0085dd8d7c1561f53f parent: da6a6b63978d45f9ae582d1f362f182012da3a22
Commit Summary:
fscache: check consistency does not decrement refcount
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c
index 318e8433527c..b2a86e324aac 100644
--- a/fs/fscache/cookie.c
+++ b/fs/fscache/cookie.c
@@ -586,7 +586,8 @@ int __fscache_check_consistency(struct fscache_cookie *cookie)
 
 	fscache_operation_init(op, NULL, NULL);
 	op->flags = FSCACHE_OP_MYTHREAD |
-		(1 << FSCACHE_OP_WAITING);
+		(1 << FSCACHE_OP_WAITING) |
+		(1 << FSCACHE_OP_UNUSE_COOKIE);
 
 	spin_lock(&cookie->lock);