diff options
author | Lukas Czerner <lczerner@redhat.com> | 2013-04-04 05:32:34 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-04 05:32:34 +0200 |
commit | bd86298e60b84b5e6d2da3e75c4ce2f6b70bdeed (patch) | |
tree | 8da632bbc3acfcc7e7416da820de87d56f2168a4 /fs/nls | |
parent | ext4: make ext4_block_in_group() much more efficient (diff) | |
download | linux-bd86298e60b84b5e6d2da3e75c4ce2f6b70bdeed.tar.xz linux-bd86298e60b84b5e6d2da3e75c4ce2f6b70bdeed.zip |
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 'fs/nls')
0 files changed, 0 insertions, 0 deletions