aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLukas Czerner <[email protected]>2014-04-18 10:43:21 -0400
committerTheodore Ts'o <[email protected]>2014-04-18 10:43:21 -0400
commit2c1d23289bc2f7cfa358bc856b87a992dcb11ad5 (patch)
tree9ad212ad5d9082eaac42beced6115a46c03c6818 /lib/memory-notifier-error-inject.c
parent1a66c7c3bea52ba0f7596b8940d74fce75281d16 (diff)
ext4: fix removing status extents in ext4_collapse_range()
Currently in ext4_collapse_range() when calling ext4_es_remove_extent() to remove status extents we're passing (EXT_MAX_BLOCKS - punch_start - 1) in order to remove all extents from start of the collapse range to the end of the file. However this is wrong because we might miss the possible extent covering the last block of the file. Fix it by removing the -1. Signed-off-by: Lukas Czerner <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]> Reviewed-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions