BTRFS: Reimplement TreeIterator, add some error checks and remove redundancies.
commitbfd7a4fb427485418bc5f2edec48201fd94a1625
authorhyche <cvghy116@gmail.com>
Sat, 12 Aug 2017 21:29:18 +0000 (13 04:29 +0700)
committerAugustin Cavalier <waddlesplash@gmail.com>
Sun, 10 Dec 2017 15:56:11 +0000 (10 10:56 -0500)
tree343b1fb209fe080bc1a5e0218292283748be3384
parent3216460dec5447c463e617b5dd537ac496dc0370
BTRFS: Reimplement TreeIterator, add some error checks and remove redundancies.

Add BTree::Path as a attribute so enhance performance, so that everytime we iterate through items it wont search all the root to leaf
again. The Iterator is initialized without rewinding to make more flexible.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
src/add-ons/kernel/file_systems/btrfs/AttributeIterator.cpp
src/add-ons/kernel/file_systems/btrfs/BTree.cpp
src/add-ons/kernel/file_systems/btrfs/BTree.h
src/add-ons/kernel/file_systems/btrfs/DirectoryIterator.cpp