mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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>
This commit is contained in:
parent
9023cb7e85
commit
2185e69f68
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue