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_io.c.orig	2008-03-15 12:33:37.000000000 +0800
+++ extent_io.c	2008-03-15 12:34:15.000000000 +0800
@@ -111,7 +111,7 @@ struct extent_state *alloc_extent_state(
 	struct extent_state *state;
 
 	state = kmem_cache_alloc(extent_state_cache, mask);
-	if (!state || IS_ERR(state))
+	if (!state)
 		return state;
 	state->state = 0;
 	state->private = 0;
_______________________________________________
Btrfs-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/btrfs-devel

Reply via email to