kmem_cache_alloc() only return two possible value:   NULL for error,
and non-NULL for valid pointer.   IS_ERR() check for return value is
not right, I guessed?



-- 
Regards,
Peter Teoh
Signed-off-by: Peter Teoh <[EMAIL PROTECTED]>

--- extent_map.c.orig	2008-03-15 12:34:29.000000000 +0800
+++ extent_map.c	2008-03-15 12:34:41.000000000 +0800
@@ -43,7 +43,7 @@ struct extent_map *alloc_extent_map(gfp_
 {
 	struct extent_map *em;
 	em = kmem_cache_alloc(extent_map_cache, mask);
-	if (!em || IS_ERR(em))
+	if (!em)
 		return em;
 	em->in_tree = 0;
 	em->flags = 0;
_______________________________________________
Btrfs-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/btrfs-devel

Reply via email to