]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
XArray: Fix xa_reserve for 2-byte aligned entries
authorMatthew Wilcox <willy@infradead.org>
Thu, 21 Feb 2019 22:54:44 +0000 (17:54 -0500)
committerMatthew Wilcox <willy@infradead.org>
Thu, 21 Feb 2019 22:54:44 +0000 (17:54 -0500)
commit4a5c8d898948d1ac876522cdd62f07a78104bfe9
treef7b60e242dc970b9f4c6524f6882a4eb9261c388
parent2fbe967b3eb7466f679307b38564b8271c093241
XArray: Fix xa_reserve for 2-byte aligned entries

If we reserve index 0, the next entry to be stored there might be 2-byte
aligned.  That means we have to create the root xa_node at the time of
reserving the initial entry.

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