From: Andrew Morton Date: Thu, 24 Jul 2008 04:27:19 +0000 (-0700) Subject: mapping_set_error: add unlikely() X-Git-Tag: MMI-PSA29.97-13-9~33403 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2185e69f680ae8c8496b6fc15e20c889d5b39b67;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mapping_set_error: add unlikely() This is called on a per-page basis and in the vast majority of cases `error' is zero. Cc: Guillaume Chazarain Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index d2fca802f809..ee1ec2c7723c 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -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