From: Jiri Pirko <j...@resnulli.us> Date: Thu, 14 Feb 2019 15:39:07 +0100
> From: Jiri Pirko <j...@mellanox.com> > > It is possible that there might be an originally parent object with 0 > direct users that is in hints no longer considered as parent. Then the > weight of this object is 0 and current code ignores him. That's why the > total amount of hint objects might be lower than for the original > objagg and WARN_ON is hit. Fix this be considering 0 weight valid. > > Fixes: 9069a3817d82 ("lib: objagg: implement optimization hints assembly and > use hints for object creation") > Signed-off-by: Jiri Pirko <j...@mellanox.com> Applied, thanks Jiri.