uprobes: Kill uprobe_events, use RB_EMPTY_ROOT() instead
authorOleg Nesterov <oleg@redhat.com>
Sun, 25 Nov 2012 18:54:29 +0000 (19:54 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:08 +0000 (17:47 +0100)
commit441f1eb7db8babe2b6b4bc805f023739dbb70e33
tree4c57b4553ce1b325c677d3e7204a2444fe577a99
parentd4d3ccc6d1eb74bd315d49a3829c5ad6c48d21b0
uprobes: Kill uprobe_events, use RB_EMPTY_ROOT() instead

uprobe_events counts the number of uprobes in uprobes_tree but
it is used as a boolean. We can use RB_EMPTY_ROOT() instead.

Probably no_uprobe_events() added by this patch can have more
callers, say, mmf_recalc_uprobes().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c