Skip to content
Commit 97df5d15 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent cfe82c85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment