]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - treeops.c
pf_insert: Return matching node on insert
[scan-pagemap] / treeops.c
index feaca58fbf1e14b1baf72df94da8d1f8f368540e..ff698a0033059444a147d4557ce022406728270d 100644 (file)
--- a/treeops.c
+++ b/treeops.c
@@ -20,7 +20,7 @@ struct pageframe *pf_insert(struct rb_root *root, struct pageframe *pf)
                         * tree. Return that node to indicate the
                         * collision
                         */
-                       return NULL;
+                       return this;
        }
 
        /* Add new node and rebalance tree. */