Skip to contentSkip to conversation

A trivial patch for removing unnecessary comment in mm/filemap.c

PATCH Himanshu Raj 1 participant 1 message Jul 14, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

This patch removes some unnecessary comments in mm/filemap.c in function find_get_page. First, there is no longer a hash list being used, second the lock being used is the same for search as well as addition/removal.

Thanks,
Himanshu

Signature · 5 lines
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------
mm/filemap.c +0 -4
@@ -440,10 +440,6 @@
 {
 	struct page *page;
 
-	/*
-	 * We scan the hash list read-only. Addition to and removal from
-	 * the hash-list needs a held write-lock.
-	 */
 	spin_lock_irq(&mapping->tree_lock);
 	page = radix_tree_lookup(&mapping->page_tree, offset);
 	if (page)