]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: no need to rcu_dereference in mtree_empty()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 2 Mar 2020 21:09:00 +0000 (16:09 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:04:29 +0000 (15:04 -0400)
commitda9683f694c119eef6772f0ab376bfbb601e6ea3
tree5f9505c47bea15c4d831e42fb1f5b03e1122633f
parent10ff489883e0d83fdc35779b8e7b159ad0d19f8d
maple_tree: no need to rcu_dereference in mtree_empty()

Since we're only comparing the value of the pointer to NULL, we
don't need to use rcu_dereference().  This is explicitly documented
in Documentation/RCU/rcu_dereference.rst.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/maple_tree.h