All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Use unaligned put/get
@ 2020-09-16 17:25 David Sterba
  2020-09-16 17:25 ` [PATCH 1/3] btrfs: send: use helpers for unaligned access to header members David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Sterba @ 2020-09-16 17:25 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

We use buffers that get mapped to structures and then accessed via
member pointers. For all the on-disk items we have the setget helpers,
but there are still some other cases like send and free space cache
(v1). Due to natural alignment this worked and we haven't received
reports where from strict alignment arches. Use the
put/get_unaligned_le* helpers to make it explicit.

David Sterba (3):
  btrfs: send: use helpers for unaligned access to header members
  btrfs: free-space-cache: use unaligned helpers to access data
  btrfs: use unaligned helpers for stack and header set/get helpers

 fs/btrfs/ctree.h            | 20 ++++++++++++++------
 fs/btrfs/free-space-cache.c | 21 +++++++++------------
 fs/btrfs/send.c             | 14 +++++++-------
 fs/btrfs/struct-funcs.c     | 10 ----------
 4 files changed, 30 insertions(+), 35 deletions(-)

-- 
2.25.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-16 20:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16 17:25 [PATCH 0/3] Use unaligned put/get David Sterba
2020-09-16 17:25 ` [PATCH 1/3] btrfs: send: use helpers for unaligned access to header members David Sterba
2020-09-16 17:25 ` [PATCH 2/3] btrfs: free-space-cache: use unaligned helpers to access data David Sterba
2020-09-16 17:25 ` [PATCH 3/3] btrfs: use unaligned helpers for stack and header set/get helpers David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.