lkml.org 
[lkml]   [2004]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectA trivial patch for removing unnecessary comment in mm/filemap.c
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.
-------------------------------------------------------------------------
--- 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)
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.021 / U:3.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site