Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2185e69f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9023cb7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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