Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=27bb628a1d759cc82ff6360becf61de601907811
Commit:     27bb628a1d759cc82ff6360becf61de601907811
Parent:     2d8a972661832719931b0dd5b80e97215cb93d94
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 29 04:42:55 2007 +0000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Oct 29 07:41:32 2007 -0700

    missing atomic_read_long() in slub.c
    
    nr_slabs is atomic_long_t, not atomic_t
    
    Signed-off-by: Al Viro <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 mm/slub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index aac1dd3..bcdb2c8 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2734,7 +2734,7 @@ static void slab_mem_offline_callback(void *arg)
                         * and offline_pages() function shoudn't call this
                         * callback. So, we must fail.
                         */
-                       BUG_ON(atomic_read(&n->nr_slabs));
+                       BUG_ON(atomic_long_read(&n->nr_slabs));
 
                        s->node[offline_node] = NULL;
                        kmem_cache_free(kmalloc_caches, n);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to