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

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

Advertisement

Kernel v2.6.26-rc1-git8 /mm/slub.c

Filename:/mm/slub.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.26-rc1-git7  2.6.26-rc1  2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17 
(Following) 2.6.26-rc1-git9  2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6 

Location
[  2.6.26-rc1-git8
  [  mm
     o  slub.c

Patch

diff --git a/mm/slub.c b/mm/slub.c
index d379b78..a505a82 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3762,7 +3762,7 @@ static int any_slab_objects(struct kmem_cache *s)
       if (!n)
          continue;
 
-      if (atomic_read(&n->total_objects))
+      if (atomic_long_read(&n->total_objects))
          return 1;
    }
    return 0;


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