diff options
| author | Hou Pengyang <houpengyang@huawei.com> | 2016-01-26 12:56:26 +0000 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:55 +0200 |
| commit | 53088fa7c6855335c6e32d66cd539328fb894ebd (patch) | |
| tree | 30a03adc52d9ec0a415a6718ba1516dc67262fdc /scripts/docproc.c | |
| parent | b6eb6431bf1becdb9188fce3645cfdf4733142e7 (diff) | |
f2fs: improve shrink performance of extent nodes
On the worst case, we need to scan the whole radix tree and every rb-tree to
free the victimed extent_nodes when shrinking.
Pengyang initially introduced a victim_list to record the victimed extent_nodes,
and free these extent_nodes by just scanning a list.
Later, Chao Yu enhances the original patch to improve memory footprint by
removing victim list.
The policy of lru list shrinking becomes:
1) lock lru list's lock
2) trylock extent tree's lock
3) remove extent node from lru list
4) unlock lru list's lock
5) do shrink
6) repeat 1) to 5)
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/docproc.c')
0 files changed, 0 insertions, 0 deletions
