On Thu, Jul 04, 2013 at 12:07:37AM +0800, Wang Shilong wrote:
> From: Wang Shilong <wangsl-f...@cn.fujitsu.com>
> 
> In the original code, pretty_sizes() may return NULL in two cases:
> <1> Allocating memory dynamically fails

Turning it into static allocation looks much better than calling
malloc for ~30 bytes.

> <2> Overflow happens(size exceeds YB)

However we're limited to 16 EiB both theoretically and practically due
to everything being 64bit, we can drop the zetta- and yotta- suffixes
eventually.

thanks,
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to