]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: introduce ext4_get_group_number()
authorLukas Czerner <lczerner@redhat.com>
Thu, 4 Apr 2013 03:32:34 +0000 (23:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2013 03:32:34 +0000 (23:32 -0400)
commit6a17dc9f6327078f2e63a9acc4823c80e5f80120
tree8da632bbc3acfcc7e7416da820de87d56f2168a4
parentd8cb030273848c2b9145814c62f451b5a007a8a6
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 <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/mballoc.c
fs/ext4/resize.c