Re: [PATCH] btrfs: add little-endian optimized key helpers

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

 




On 9.06.20 г. 22:49 ч., David Sterba wrote:
> The CPU and on-disk keys are mapped to two different structures because
> of the endianity. There's an intermediate buffer used to do the
> conversion, but this is not necessary when CPU and on-disk endianity
> matches.
> 
> Add optimized versions of helpers that take disk_key and use the buffer
> directly for CPU keys or drop the intermediate buffer and conversion.
> 
> This saves a lot of stack space accross many functions and removes about
> 6K of generated binary code:
> 
>    text    data     bss     dec     hex filename
> 1090439   17468   14912 1122819  112203 pre/btrfs.ko
> 1084613   17456   14912 1116981  110b35 post/btrfs.ko
> 
> Delta: -5826
> 
> Signed-off-by: David Sterba <dsterba@xxxxxxxx>

Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux