On Mon, Nov 08, 2010 at 10:17:50PM +0900, Yoshinori Sano wrote:
So this forces us to return the error case every 1000 times the function is
called. So you can run various tests that stress the FS in different ways so
you can catch alot of the possible ways you can end up in this function. Then
if any of the callers have problems getting ENOMEM then the box will panic or
something like that and you can fix the callers. Then when the system stops
panicing/blowing up after a while you know you are pretty OK with returning
ENOMEM in this case and you can post the patch and move on to the next one.
But as Ian says it gets a little confusing in the more complicated cases, so you
are probably better off walking up the possible callchains by hand and fixing
any problems you see, and then doing the above to validate your work. Thanks,
Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html