diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-12-19 15:11:03 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-18 21:41:30 -0900 |
commit | d9f64c633096a11c2a0ee87180ab19c88cf89b50 (patch) | |
tree | 73d22046820d5bde1979efdd91b3a3b26bfca995 | |
parent | cab059d3b5b9d57677cae5c221e48adfde99b067 (diff) |
bcache: don't zero out res->seq in journal_res_put()
broke bch_journal_meta()...
-rw-r--r-- | drivers/md/bcache/journal.h | 2 |
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 *, |