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

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

Advertisement

Kernel v2.6.25-git5 /mm/pdflush.c

Filename:/mm/pdflush.c
Lines Added:4
Lines Deleted:4
Also changed in: (Previous) 2.6.25-git4  2.6.25-git3  2.6.23  2.6.23-rc9  2.6.23-rc8  2.6.23-rc7 
(Following) 2.6.25-git6  2.6.25-git7  2.6.25-git8  2.6.25-git9  2.6.25-git10  2.6.25-git11 

Location
[  2.6.25-git5
  [  mm
     o  pdflush.c

Patch

diff --git a/mm/pdflush.c b/mm/pdflush.c
index 8f6ee07..1c96cfc 100644
--- a/mm/pdflush.c
+++ b/mm/pdflush.c
@@ -17,8 +17,8 @@
 #include <linux/gfp.h>
 #include <linux/init.h>
 #include <linux/module.h>
-#include <linux/fs.h>      // Needed by writeback.h
-#include <linux/writeback.h>   // Prototypes pdflush_operation()
+#include <linux/fs.h>      /* Needed by writeback.h     */
+#include <linux/writeback.h>   /* Prototypes pdflush_operation() */
 #include <linux/kthread.h>
 #include <linux/cpuset.h>
 #include <linux/freezer.h>
@@ -187,8 +187,8 @@ static int pdflush(void *dummy)
     * This is needed as pdflush's are dynamically created and destroyed.
     * The boottime pdflush's are easily placed w/o these 2 lines.
     */
-   cpus_allowed = cpuset_cpus_allowed(current);
-   set_cpus_allowed(current, cpus_allowed);
+   cpuset_cpus_allowed(current, &cpus_allowed);
+   set_cpus_allowed_ptr(current, &cpus_allowed);
 
    return __pdflush(&my_work);
 }


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