ocfs2: Add extra credits and access the modified bh in update_edge_lengths.
authorTao Ma <tao.ma@oracle.com>
Tue, 21 Jul 2009 07:42:05 +0000 (15:42 +0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 21 Jul 2009 21:41:54 +0000 (14:41 -0700)
commit3c5e10683e684ef45614c9071847e48f633d9806
tree2861ea95385422c50afc818dd6bb2d2c6cb9d46a
parent1f4cea3790bf44137192f441ee84af256e3bf809
ocfs2: Add extra credits and access the modified bh in update_edge_lengths.

In normal tree rotation left process, we will never touch the tree
branch above subtree_index and ocfs2_extend_rotate_transaction doesn't
reserve the credits for them either.

But when we want to delete the rightmost extent block, we have to update
the rightmost records for all the rightmost branch(See
ocfs2_update_edge_lengths), so we have to allocate extra credits for them.
What's more, we have to access them also.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/alloc.c