ref: 801cc44cbad8ecf24b36cc51bcce68405e81b652
parent: b824765f6090f3051add513f72c6f73db02734af
author: ngkaho1234 <[email protected]>
date: Wed Oct 7 11:47:43 EDT 2015
FIX: no entries found during iteration.
--- a/lwext4/ext4_xattr.c
+++ b/lwext4/ext4_xattr.c
@@ -737,9 +737,9 @@
int (iter)(struct ext4_xattr_ref *ref,
struct ext4_xattr_item *item))
{
- struct ext4_xattr_item *item = ref->iter_from;
- if (!item)
- item = RB_MIN(ext4_xattr_tree, &ref->root);
+ struct ext4_xattr_item *item;
+ if (!ref->iter_from)
+ ref->iter_from = RB_MIN(ext4_xattr_tree, &ref->root);
RB_FOREACH_FROM(item,
ext4_xattr_tree,