Commit bfc9d71
btrfs: set EXTENT_NORESERVE before range unlock in btrfs_truncate_block()
Set the EXTENT_NORESERVE bit in the io tree before unlocking the range so
that we can use the cached state and speedup the operation, since the
unlock operation releases the cached state.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 5ae011b commit bfc9d71
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5002 | 5002 | | |
5003 | 5003 | | |
5004 | 5004 | | |
5005 | | - | |
5006 | 5005 | | |
5007 | 5006 | | |
5008 | 5007 | | |
5009 | | - | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
5010 | 5011 | | |
5011 | 5012 | | |
5012 | 5013 | | |
| |||
0 commit comments