]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove do_blk_alloc()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 12 Dec 2008 17:41:28 +0000 (12:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Dec 2008 17:41:28 +0000 (12:41 -0500)
commitab71459c3f684496e0c588fbf4c62e811f411adc
tree11847bd119be9b68365a2fa4beb5f95f691162b1
parent0fab73f28eb325a4656c9d522aefa6c932dada05
ext4: remove do_blk_alloc()

The convenience function do_blk_alloc() is a static function with only
one caller, so fold it into ext4_new_meta_blocks() to simplify the
code and to make it easier to understand.

To save more stack space, if count is a null pointer in
ext4_new_meta_blocks() assume that caller wanted a single block (and
if there is an error, no blocks were allocated).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/extents.c
fs/ext4/xattr.c