Mark Fasheh 1d46dc08d3 ocfs2: fix leaf start calculation in ocfs2_dx_dir_rebalance()
ocfs2_dx_dir_rebalance() is passed the block offset of a dx leaf which needs
rebalancing. Since we rebalance an entire cluster at a time however, this
function needs to calculate the beginning of that cluster, in blocks. The
calculation was wrong, which would result in a read of non-leaf blocks. Fix
the calculation by adding ocfs2_block_to_cluster_start() which is a more
straight-forward way of determining this.

Reported-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2009-04-03 11:39:17 -07:00
..
2009-03-31 23:00:26 -04:00
2009-01-05 08:34:20 -08:00
2007-10-16 09:42:58 -07:00
2009-03-27 14:44:02 -04:00
2009-03-27 14:44:02 -04:00
2009-04-03 11:39:16 -07:00
2009-01-08 08:31:14 -08:00
2009-04-03 11:39:16 -07:00
2009-04-03 11:39:16 -07:00
2009-01-22 13:15:54 +03:00
2008-10-13 13:57:57 -07:00
2008-10-13 13:57:57 -07:00
2009-04-03 11:39:17 -07:00
2008-02-03 17:33:42 +02:00
2009-04-03 11:39:16 -07:00
2008-10-13 17:02:44 -07:00
2008-10-13 13:57:57 -07:00
2008-01-25 15:05:46 -08:00