bcache: Fix another bug recovering from unclean shutdown
authorKent Overstreet <kmo@daterainc.com>
Mon, 17 Mar 2014 22:13:26 +0000 (15:13 -0700)
committerKent Overstreet <kmo@daterainc.com>
Tue, 18 Mar 2014 19:22:33 +0000 (12:22 -0700)
commit487dded86ea065317aea121bec8f1816f2f235c9
tree3d333832a9b133156985af197d1bd2952b033c6b
parent0bd143fd800055b1db756693289bbebdb93f2a73
bcache: Fix another bug recovering from unclean shutdown

The on disk bucket gens are allowed to be out of date, when we reuse buckets
that didn't have any live data in them. To deal with this, the initial gc has to
update the bucket gen when we find a pointer gen newer than the bucket's gen.

Unfortunately we weren't doing this for pointers in the journal that we're about
to replay.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/btree.c
drivers/md/bcache/btree.h
drivers/md/bcache/journal.c
This page took 0.02652 seconds and 5 git commands to generate.