Thread (5 messages) 5 messages, 3 authors, 2021-01-14

Re: [PATCH] btrfs-progs: align btrfs receive buffer to enable fast CRC

From: David Sterba <hidden>
Date: 2021-01-14 18:40:10

On Sat, Dec 26, 2020 at 02:46:06PM -0700, shngmao@gmail.com wrote:
From: Sheng Mao <redacted>

To use optimized CRC implemention, the input buffer must be
unsigned long aligned. btrfs receive calculates checksum based on
read_buf, including btrfs_cmd_header (with zero-ed CRC field)
and command content. GCC attribute is added to both struct
btrfs_send_stream and read_buf to make sure read_buf is allocated
with proper alignment.

Issue: #324
Signed-off-by: Sheng Mao <redacted>
Fix added to devel, with the mentined changes: read_buf is at the
begninning and whole structure 64 bytes aligned. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help