]> git.baikalelectronics.ru Git - kernel.git/commit
md: factor out updating of 'recovery_offset'.
authorNeilBrown <neilb@suse.de>
Thu, 12 Nov 2009 01:08:04 +0000 (12:08 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 12 Nov 2009 01:08:04 +0000 (12:08 +1100)
commita5dab016540a2732175b7f26b00180ef3f3b2586
tree56a2a3de85fae3f7e210c54a9cda305b0341c334
parent5daacbf6fc91e60fab798f4f34004334ef2c9dc7
md: factor out updating of 'recovery_offset'.

Each device has its own 'recovery_offset' showing how far
recovery has progressed on the device.
As the only real significance of this is that fact that it can
be stored in the metadata and recovered at restart, and as
only 1.x metadata can do this, we were only updating
'recovery_offset' to 'curr_resync_completed' when updating
v1.x metadata.
But this is wrong, and we will shortly make limited use of this
field in v0.90 metadata.

So move the update into common code.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c