]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: factor out determining of hole size
authorJan Kara <jack@suse.cz>
Thu, 10 Mar 2016 03:46:57 +0000 (22:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Mar 2016 03:46:57 +0000 (22:46 -0500)
commite769a4bc418480f505e0a200eaf3e9ecbc84ef0c
tree8326fcc3d156921d8e07287840632b058d671068
parente97690b8cb99a00be1d2de5676a95e2074fa45f5
ext4: factor out determining of hole size

ext4_ext_put_gap_in_cache() determines hole size in the extent tree,
then trims this with possible delayed allocated blocks, and inserts the
result into the extent status tree. Factor out determination of the size
of the hole in the extent tree as we will need this information in
ext4_ext_map_blocks() as well.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c