Commit 72c47832 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Linus Torvalds

mm: remove useless rcu lock-unlock from mapping_tagged()

radix_tree_tagged() is lockless - it reads from a member of the raid-tree
root node.  It does not require any protection.
Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76d3fbf8
...@@ -1405,10 +1405,6 @@ EXPORT_SYMBOL(test_set_page_writeback); ...@@ -1405,10 +1405,6 @@ EXPORT_SYMBOL(test_set_page_writeback);
*/ */
int mapping_tagged(struct address_space *mapping, int tag) int mapping_tagged(struct address_space *mapping, int tag)
{ {
int ret; return radix_tree_tagged(&mapping->page_tree, tag);
rcu_read_lock();
ret = radix_tree_tagged(&mapping->page_tree, tag);
rcu_read_unlock();
return ret;
} }
EXPORT_SYMBOL(mapping_tagged); EXPORT_SYMBOL(mapping_tagged);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment