diff options
author | Filipe Manana <[email protected]> | 2024-04-16 15:19:03 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-05-07 21:31:07 +0200 |
commit | 433a3e01dda1d463159a9620b40ba027514f0ea5 (patch) | |
tree | e68d1b7d900c5191b1de5d1b6fc8ff1a3c5f76fb /lib/test_fortify/write_overflow-memcpy.c | |
parent | 85d288309ab5463140a2d00b3827262fb14e7db4 (diff) |
btrfs: remove i_size restriction at try_release_extent_mapping()
Currently we don't attempt to release extent maps if the inode has an
i_size that is not greater than 16M. This condition was added way back
in 2008 by commit 70dec8079d78 ("Btrfs: extent_io and extent_state
optimizations"), without any explanation about it. A quick chat with
Chris on slack revealed that the goal was probably to release the extent
maps for small files only when closing the inode. This however can be
harmful in case we have tons of such files being kept open for very long
periods of time, since we will consume more and more pages for extent
maps.
So remove the condition.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions