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

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

 



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?

_______________________________________________
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