[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110402140953.14374.69840.stgit@localhost6>
Date: Sat, 2 Apr 2011 18:09:53 +0400
From: Konstantin Khlebnikov <khlebnikov@...nvz.org>
To: Alexander Viro <viro@...iv.linux.org.uk>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH] vfs: remove rcu lock-unlock from mapping_tagged()
radix_tree_tagged() does not require any locking.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@...nvz.org>
---
mm/page-writeback.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 31f6988..919b45e 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists