projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9023cb7
)
mapping_set_error: add unlikely()
author
Andrew Morton
<akpm@linux-foundation.org>
Thu, 24 Jul 2008 04:27:19 +0000
(21:27 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:15 +0000
(10:47 -0700)
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>
include/linux/pagemap.h
patch
|
blob
|
history
diff --git
a/include/linux/pagemap.h
b/include/linux/pagemap.h
index
d2fca80
..
ee1ec2c
100644
(file)
--- 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