Btrfs: optimize to remove unnecessary removal with ulist reallocation
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Fri, 10 Jan 2014 13:25:46 +0000 (21:25 +0800)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:30 +0000 (13:20 -0800)
commitf499e40fd97698a1c48d188279647009b21905fe
tree416f03ad6bad10af662d009688180d5312f6c00d
parentde6e8200669f9b60694ca87eadf0a0a99cbdb6aa
Btrfs: optimize to remove unnecessary removal with ulist reallocation

Here we are not going to free memory, no need to remove every node
one by one, just init root node here is ok.

Cc: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ulist.c