Use unaligned put/get
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: send: use helpers for unaligned access to header membersfs/ | +7 | 0 replies | |
| 2/3 | btrfs: free-space-cache: use unaligned helpers to access datafs/ | +9 | 0 replies | |
| 3/3 | btrfs: use unaligned helpers for stack and header set/get helpersfs/ fs/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Use unaligned put/get
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(-)
Signature · 1 line
2.25.0