diff options
Diffstat (limited to 'fs/fscache/operation.c')
-rw-r--r-- | fs/fscache/operation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fscache/operation.c b/fs/fscache/operation.c index 91bbe6f0377c..09e43b6e822f 100644 --- a/fs/fscache/operation.c +++ b/fs/fscache/operation.c | |||
@@ -322,6 +322,9 @@ void fscache_put_operation(struct fscache_operation *op) | |||
322 | 322 | ||
323 | object = op->object; | 323 | object = op->object; |
324 | 324 | ||
325 | if (test_bit(FSCACHE_OP_DEC_READ_CNT, &op->flags)) | ||
326 | atomic_dec(&object->n_reads); | ||
327 | |||
325 | /* now... we may get called with the object spinlock held, so we | 328 | /* now... we may get called with the object spinlock held, so we |
326 | * complete the cleanup here only if we can immediately acquire the | 329 | * complete the cleanup here only if we can immediately acquire the |
327 | * lock, and defer it otherwise */ | 330 | * lock, and defer it otherwise */ |