public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A trivial patch for removing unnecessary comment in mm/filemap.c
@ 2004-07-14 23:39 Himanshu Raj
  0 siblings, 0 replies; only message in thread
From: Himanshu Raj @ 2004-07-14 23:39 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

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
-- 
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------

[-- Attachment #2: patch_useless_comment --]
[-- Type: text/plain, Size: 418 bytes --]

--- linux-2.6.8-rc1-old/mm/filemap.c	2004-07-14 19:29:53.757633968 -0400
+++ linux-2.6.8-rc1/mm/filemap.c	2004-07-14 19:30:05.365869248 -0400
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-14 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 23:39 A trivial patch for removing unnecessary comment in mm/filemap.c Himanshu Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox