Whamcloud - gitweb
LU-8465 e2fsck: optimize the inserting of dir_info_db 04/36004/14
authorLi Xi <lixi@ddn.com>
Fri, 30 Aug 2019 09:56:10 +0000 (17:56 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 00:35:58 +0000 (00:35 +0000)
commit867621ddf45ab4c8b59bdb45998184b0d6ea411d
tree00635f256730c9125a43ca0c6a2a149ebfe3be2f
parent1f6e8b81c2d964f54c6615ff775a3f6c3a9bbe1f
LU-8465 e2fsck: optimize the inserting of dir_info_db

Binary search is now used when inserting an dir info to the array.
Memmove is now used when moving array. Both of them improves
the performance of inserting.

This patch is also a prepartion for the merging of two dir db
arrays.

Change-Id: Iefcf64f195ae6c2f85ac3d550863cfd06815037e
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/36004
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
e2fsck/dirinfo.c