diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-07-24 06:27:19 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 19:47:15 +0200 |
commit | 2185e69f680ae8c8496b6fc15e20c889d5b39b67 (patch) | |
tree | 5835610f8c89786ef18860e02937d1dd9b0977f6 | |
parent | slob: record page flag overlays explicitly (diff) | |
download | linux-2185e69f680ae8c8496b6fc15e20c889d5b39b67.tar.xz linux-2185e69f680ae8c8496b6fc15e20c889d5b39b67.zip |
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>
-rw-r--r-- | include/linux/pagemap.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |