]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm persistent data: packed struct should have an aligned() attribute too
authorJoe Thornber <ejt@redhat.com>
Mon, 29 Mar 2021 15:34:57 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 08:38:20 +0000 (10:38 +0200)
commite9a972de2d22d030318ad468123f06c2d1fbb1c6
treee3b9388da4cabd99c00c31e53b128b36eaf0aae2
parenta50a50bfa29c761611f9e84ed4fd16ecd962b289
dm persistent data: packed struct should have an aligned() attribute too

commit a88b2358f1da2c9f9fcc432f2e0a79617fea397c upstream.

Otherwise most non-x86 architectures (e.g. riscv, arm) will resort to
byte-by-byte access.

Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/persistent-data/dm-btree-internal.h
drivers/md/persistent-data/dm-space-map-common.h