[PATCH] Staging: Android: optimizing the async free space statistics
Chen Gang
gang.chen at asianux.com
Sat Apr 6 05:14:27 UTC 2013
On 2013年04月06日 06:02, Greg KH wrote:
> On Fri, Apr 05, 2013 at 06:13:52PM +0800, Chen Gang wrote:
>>
>> for space consummation statistics, 'buffer_size' is more accurate than 'size'.
>>
>> only when "n == NULL" and 'size' is more smaller than 'buffer_size'
>> it will be "size + sizeof(struct binder_buffer)".
>> else
>> it is still 'size'.
>>
>> that is just the meaning of 'buffer_size'.
>>
>> so use 'buffer_size' instead of 'size', which can save some free space.
>
> Have you tested this?
>
>
>
excuse me, not test it.
I find it only by reading code.
I want to discuss it with related members.
(although I use [PATCH] title instead of [Suggestion] title)
if what I have done is not quite suitable, please provide suggestions.
thanks.
--
Chen Gang
Asianux Corporation
More information about the devel
mailing list