btrfs: free-space-cache: use unaligned helpers to access data
authorDavid Sterba <dsterba@suse.com>
Tue, 15 Sep 2020 11:32:34 +0000 (13:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:23 +0000 (12:13 +0200)
commit6994ca367ce5160dea2718e0993542d148fa68f8
treec1daf574e8a649711c3b94fbf8385ced6e7af8d3
parente2f896b3180e3b5d34b1d174b931205a43072d17
btrfs: free-space-cache: use unaligned helpers to access data

The free space inode stores the tracking data, checksums etc, using the
io_ctl structure and moving the pointers. The data are generally aligned
to at least 4 bytes (u32 for CRC) so it's not completely unaligned but
for clarity we should use the proper helpers whenever a struct is
initialized from io_ctl->cur pointer.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c