]> git.itanic.dy.fi Git - scan-pagemap/commit
pf_insert: Return matching node on insert
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 11 Jun 2012 15:32:10 +0000 (18:32 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 11 Jun 2012 15:36:10 +0000 (18:36 +0300)
commit1273c6165f1785093d70ac5e98e140b15bb6e0d5
tree8e1916f41c418972e7fd0bf3d6a4c162bc259b91
parent7ab1da44dd573ad64c9093a9f15f8263a7fb2a5b
pf_insert: Return matching node on insert

When a matching entry is found from the rb_tree, the insert function
should return the found entry from the tree to the caller. This is
also explicitly documented in the code. However, the code incorrectly
returned NULL instead.

Fix the code to return the match as it should do. Without this fix
identical pageframe entries are never located.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
treeops.c