]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix nomem bug
authorMatthew Wilcox <willy@infradead.org>
Wed, 5 Dec 2018 19:48:03 +0000 (14:48 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sat, 8 Dec 2018 10:38:41 +0000 (05:38 -0500)
commitcf149a320e85b4ca3ad20a8bd00ac395c396fb34
tree31add09ff649adeb12e2659038272bf79b2c738a
parent20999d851e5d8fea408b63fd3873999481c996b5
maple_tree: Fix nomem bug

Add a pair of tests to check that -ENOMEM works correctly, and fix a
bug in __maple_nomem() which was inadvertently clearing the error
mark in the case of a second memory allocation failure.  Also add an
implemenation of mtree_empty().

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