From: Konstantin Khlebnikov Date: Tue, 26 Jul 2011 00:12:31 +0000 (-0700) Subject: mm: remove useless rcu lock-unlock from mapping_tagged() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=72c4783210f77fd743f0a316858d33f27db51e7c;p=linux-beck.git 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: Konstantin Khlebnikov Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 31f698862420..919b45eb57ad 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1405,10 +1405,6 @@ EXPORT_SYMBOL(test_set_page_writeback); */ int mapping_tagged(struct address_space *mapping, int tag) { - int ret; - rcu_read_lock(); - ret = radix_tree_tagged(&mapping->page_tree, tag); - rcu_read_unlock(); - return ret; + return radix_tree_tagged(&mapping->page_tree, tag); } EXPORT_SYMBOL(mapping_tagged);