]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: refactor duplicated block placement code
authorEric Sandeen <sandeen@redhat.com>
Tue, 28 Jun 2011 14:01:31 +0000 (10:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 Jun 2011 14:01:31 +0000 (10:01 -0400)
commit97f1bd3e505ff1fa67f67e7f8f5b739b30df9d48
tree48aafabbbe46d22de84e4e9b3ebf7c5b35fd6d1e
parent455276d99785c99f385e4d3c3a8440d933617ccb
ext4: refactor duplicated block placement code

I found that ext4_ext_find_goal() and ext4_find_near()
share the same code for returning a coloured start block
based on i_block_group.

We can refactor this into a common function so that they
don't diverge in the future.

Thanks to adilger for suggesting the new function name.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/indirect.c