summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/md/bcache/journal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/journal.h b/drivers/md/bcache/journal.h
index c8c6639666d3..1dc40c7467cd 100644
--- a/drivers/md/bcache/journal.h
+++ b/drivers/md/bcache/journal.h
@@ -256,7 +256,7 @@ static inline void bch_journal_res_put(struct journal *j,
bch_journal_buf_put(j, res->idx, false);
- memset(res, 0, sizeof(*res));
+ res->ref = 0;
}
int bch_journal_res_get_slowpath(struct journal *, struct journal_res *,