]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ext4/extents.c
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)
commit140a52508a68387e22486659ff9eaa89a24f6e40
tree8326fcc3d156921d8e07287840632b058d671068
parent87d8a74b56746d4b6125602365b10995116afd00
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