X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fxarray.c;h=96e2d7748e5aa6ed6b659f45a6b49edce86692b9;hb=refs%2Fheads%2Ftizen_8.0;hp=f5d8f54907b4f87e649211a60d1e0bf3cb170a16;hpb=c05a182bf45681c5529a58c71ce5647535b3ae7a;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/lib/xarray.c b/lib/xarray.c index f5d8f549..96e2d77 100644 --- a/lib/xarray.c +++ b/lib/xarray.c @@ -722,6 +722,8 @@ void xas_create_range(struct xa_state *xas) for (;;) { struct xa_node *node = xas->xa_node; + if (node->shift >= shift) + break; xas->xa_node = xa_parent_locked(xas->xa, node); xas->xa_offset = node->offset - 1; if (node->offset != 0) @@ -1079,6 +1081,7 @@ void xas_split(struct xa_state *xas, void *entry, unsigned int order) xa_mk_node(child)); if (xa_is_value(curr)) values--; + xas_update(xas, child); } else { unsigned int canon = offset - xas->xa_sibs; @@ -1093,6 +1096,7 @@ void xas_split(struct xa_state *xas, void *entry, unsigned int order) } while (offset-- > xas->xa_offset); node->nr_values += values; + xas_update(xas, node); } EXPORT_SYMBOL_GPL(xas_split); #endif