]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
XArray: Permit storing 2-byte-aligned pointers
authorMatthew Wilcox <willy@infradead.org>
Sat, 29 Dec 2018 04:20:44 +0000 (23:20 -0500)
committerMatthew Wilcox <willy@infradead.org>
Mon, 7 Jan 2019 03:12:57 +0000 (22:12 -0500)
commit76b4e52995654af260f14558e0e07b5b039ae202
tree81abacc99a4a81505775c391a8be070925f1c88b
parent4a31896c5b5a2715ecf4033426aa0a35066d92d6
XArray: Permit storing 2-byte-aligned pointers

On m68k, statically allocated pointers may only be two-byte aligned.
This clashes with the XArray's method for tagging internal pointers.
Permit storing these pointers in single slots (ie not in multislots).

Signed-off-by: Matthew Wilcox <willy@infradead.org>
include/linux/xarray.h
lib/test_xarray.c
lib/xarray.c