]> git.baikalelectronics.ru Git - kernel.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)
commit57a7e32ca24b592f2417fbd8b0c5db5f01b26a36
tree81abacc99a4a81505775c391a8be070925f1c88b
parentf87c7c91da350fae0d2e91b8721bb1ff61722d6c
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