diff --git a/[refs] b/[refs] index aea84767e422..4cd02d3c79f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1817dc0370873caff77b924b53ae489edaf9b1e2 +refs/heads/master: ac15ee691fe84cb46cbd2497ddcb10e246f7ee47 diff --git a/trunk/lib/radix-tree.c b/trunk/lib/radix-tree.c index 5086bb962b4d..7ea2e033d715 100644 --- a/trunk/lib/radix-tree.c +++ b/trunk/lib/radix-tree.c @@ -736,10 +736,11 @@ unsigned long radix_tree_range_tag_if_tagged(struct radix_tree_root *root, } } /* - * The iftag must have been set somewhere because otherwise - * we would return immediated at the beginning of the function + * We need not to tag the root tag if there is no tag which is set with + * settag within the range from *first_indexp to last_index. */ - root_tag_set(root, settag); + if (tagged > 0) + root_tag_set(root, settag); *first_indexp = index; return tagged;