Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-git19 /mm/filemap.c

Filename:/mm/filemap.c
Lines Added:6
Lines Deleted:4
Also changed in: (Previous) 2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15  2.6.25-git14  2.6.25-git13 
(Following) 2.6.25-git20  2.6.25.14-rc1  2.6.25.14  2.6.25.15-rc1  2.6.25.15  2.6.25.16 

Location
[  2.6.25-git19
  [  mm
     o  filemap.c

Patch

diff --git a/mm/filemap.c b/mm/filemap.c
index 07e9d92..239d361 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -576,10 +576,12 @@ EXPORT_SYMBOL(unlock_page);
  */
 void end_page_writeback(struct page *page)
 {
-   if (!TestClearPageReclaim(page) || rotate_reclaimable_page(page)) {
-      if (!test_clear_page_writeback(page))
-         BUG();
-   }
+   if (TestClearPageReclaim(page))
+      rotate_reclaimable_page(page);
+
+   if (!test_clear_page_writeback(page))
+      BUG();
+
    smp_mb__after_clear_bit();
    wake_up_page(page, PG_writeback);
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.