mapping_set_error: add unlikely()
[safe/jmp/linux-2.6] / include / linux / pagemap.h
index d2fca80..ee1ec2c 100644 (file)
@@ -22,7 +22,7 @@
 
 static inline void mapping_set_error(struct address_space *mapping, int error)
 {
-       if (error) {
+       if (unlikely(error)) {
                if (error == -ENOSPC)
                        set_bit(AS_ENOSPC, &mapping->flags);
                else