From: Lukas Czerner Date: Thu, 4 Apr 2013 03:32:34 +0000 (-0400) Subject: ext4: introduce ext4_get_group_number() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~83^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd86298e60b8;p=pandora-kernel.git ext4: introduce ext4_get_group_number() Currently on many places in ext4 we're using ext4_get_group_no_and_offset() even though we're only interested in knowing the block group of the particular block, not the offset within the block group so we can use more efficient way to compute block group. This patch introduces ext4_get_group_number() which computes block group for a given block much more efficiently. Use this function instead of ext4_get_group_no_and_offset() everywhere where we're only interested in knowing the block group. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed