Re: [PATCH] Staging: Android: optimizing the async free space statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux