]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Don't assume 16 byte alignment
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 Dec 2018 17:15:27 +0000 (12:15 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 Dec 2018 17:15:27 +0000 (12:15 -0500)
commit55d029aa5f13b002fe0e64a1e27c00b3be5c978c
tree02f04ef50e5b28ba153eb942f5179d59aec914ff
parent085fcd5494a90a2fac01327ad3cb182abc50b0de
maple_tree: Don't assume 16 byte alignment

Assume the allocations are 8 byte aligned, so only use the last two bits
to indicate the requested allocation.  Test and return the allocation
count.

Also, fix a small issue in decrementing the requested count before we
actually have succeeded in allocating.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c