diff options
author | Jan Kara <[email protected]> | 2016-03-09 22:54:00 -0500 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2016-03-09 22:54:00 -0500 |
commit | facab4d9711e7aa3532cb82643803e8f1b9518e8 (patch) | |
tree | 5c0f800db5aeb1fca6842c81cd3821ae847fcc0d /lib/mpi/mpi-bit.c | |
parent | 140a52508a68387e22486659ff9eaa89a24f6e40 (diff) |
ext4: return hole from ext4_map_blocks()
Currently, ext4_map_blocks() just returns 0 when it finds a hole and
allocation is not requested. However we have all the information
available to tell how large the hole actually is and there are callers
of ext4_map_blocks() which would save some block-by-block hole iteration
if they knew this information. So fill in struct ext4_map_blocks even
for holes with the information we have. We keep returning 0 for holes to
maintain backward compatibility of the function.
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions