]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: recover orphans in offline slots during recovery and mount
authorSrinivas Eeda <srinivas.eeda@oracle.com>
Fri, 6 Mar 2009 22:21:46 +0000 (14:21 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 3 Apr 2009 18:39:26 +0000 (11:39 -0700)
commita45f0a65f8dea960370ba02002599416cdf93129
tree354dbc0351195ae2b6ea5f7dfbf68a99307c3d69
parentb286234054ced60852600bec7d0b91b47e6bac28
ocfs2: recover orphans in offline slots during recovery and mount

During recovery, a node recovers orphans in it's slot and the dead node(s). But
if the dead nodes were holding orphans in offline slots, they will be left
unrecovered.

If the dead node is the last one to die and is holding orphans in other slots
and is the first one to mount, then it only recovers it's own slot, which
leaves orphans in offline slots.

This patch queues complete_recovery to clean orphans for all offline slots
during mount and node recovery.

Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/journal.c
fs/ocfs2/journal.h
fs/ocfs2/ocfs2.h
fs/ocfs2/super.c