From: Mark Fasheh Date: Thu, 19 Feb 2009 21:17:05 +0000 (-0800) Subject: ocfs2: fix leaf start calculation in ocfs2_dx_dir_rebalance() X-Git-Tag: v2.6.30-rc1~224^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d46dc08d33138c29c63d717807c08ab704fc773;p=pandora-kernel.git 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 Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed