]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e6350d98512532245c7f305c1a75cc40ae210a7
tree2861ea95385422c50afc818dd6bb2d2c6cb9d46a
parent317107db6f294c3b9adea9824effa30a6ce082aa
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