diff options
author | David Sterba <dsterba@suse.com> | 2016-07-28 19:36:50 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-29 15:04:54 +0200 |
commit | 4e4c1e603970a47cc8088d23657a85f2602feef6 (patch) | |
tree | cb7010f97ce708aec9d52b218e28effcc1edfd35 /disk-io.c | |
parent | 2f732723d6c1e3b6e9205e96da4c600ee72de875 (diff) |
btrfs-progs: use proper unaligned helper in btrfs_csum_final
This will not cause unaligned access as the checksum is at the beginning
of btrfs_header and thus aligned to a page, but for clarity use the
helper.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len) void btrfs_csum_final(u32 crc, char *result) { - *(__le32 *)result = ~cpu_to_le32(crc); + put_unaligned_le32(~crc, result); } static int __csum_tree_block_size(struct extent_buffer *buf, u16 csum_size, |