]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: send: use helpers for unaligned access to header members
authorDavid Sterba <dsterba@suse.com>
Tue, 15 Sep 2020 08:54:23 +0000 (10:54 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:23 +0000 (12:13 +0200)
commit3ef73b0f68e9a50bdc735d248a6523df13099cca
tree8d859c9f1ff2a69b08b5efd2ba68890508082165
parente3c5f643b45bf85bc0e8913d9a3bc766d69ef38b
btrfs: send: use helpers for unaligned access to header members

The header is mapped onto the send buffer and thus its members may be
potentially unaligned so use the helpers instead of directly assigning
the pointers. This has worked so far but let's use the helpers to make
that clear.

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