diff options
author | Lukas Czerner <lczerner@redhat.com> | 2013-04-04 03:32:34 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-04 03:32:34 (GMT) |
commit | bd86298e60b84b5e6d2da3e75c4ce2f6b70bdeed (patch) | |
tree | 8da632bbc3acfcc7e7416da820de87d56f2168a4 /lib/debug_locks.c | |
parent | 689110098c7df10fab8800d3bf8e727c21f426fb (diff) | |
download | linux-bd86298e60b84b5e6d2da3e75c4ce2f6b70bdeed.tar.xz |
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>
Diffstat (limited to 'lib/debug_locks.c')
0 files changed, 0 insertions, 0 deletions