1
0
Fork 0

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 <guichaz@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
wifi-calibration
Andrew Morton 2008-07-23 21:27:19 -07:00 committed by Linus Torvalds
parent 9023cb7e85
commit 2185e69f68
1 changed files with 1 additions and 1 deletions

View 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