aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2016-01-26 12:56:25 +0000
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:55 +0200
commitec35af3d1286e45d5ab0687ce3e5dd7e2ff4b784 (patch)
treef246bdb8c8980547298839bc5e9a672ad96dc3e0 /kernel
parentba3738edf92559a86cec401ddd85b6fd52caca41 (diff)
f2fs: reconstruct the code to free an extent_node
There are three steps to free an extent node: 1) list_del_init, 2)__detach_extent_node, 3) kmem_cache_free In path f2fs_destroy_extent_tree, 1->2->3 to free a node, But in path f2fs_update_extent_tree_range, it is 2->1->3. This patch makes all the order to be: 1->2->3 It makes sense, since in the next patch, we import a victim list in the path shrink_extent_tree, we could check if the extent_node is in the victim list by checking the list_empty(). So it is necessary to put 1) first. Signed-off-by: Hou Pengyang <houpengyang@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions