Btrfs: run delayed directory updates during log replay
authorChris Mason <chris.mason@fusionio.com>
Mon, 2 Jul 2012 19:29:53 +0000 (15:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:05 +0000 (09:04 -0700)
commitdbc904343caccba0ce47a51379c4a743da504a8a
treeae28a633804949dd3f485b2538c1c4f1defddac0
parentbecbf4ebbb41acee5c0dcf2851af6bd84964fc00
Btrfs: run delayed directory updates during log replay

commit b6305567e7d31b0bec1b8cb9ec0cadd7f7086f5f upstream.

While we are resolving directory modifications in the
tree log, we are triggering delayed metadata updates to
the filesystem btrees.

This commit forces the delayed updates to run so the
replay code can find any modifications done.  It stops
us from crashing because the directory deleltion replay
expects items to be removed immediately from the tree.

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c