Re: [RFC][PATCH 02/10] mm: Remove likely() frommapping_unevictable()

From: Steven Rostedt
Date: Fri Dec 10 2010 - 19:09:20 EST


On Fri, 2010-12-10 at 17:08 +0900, Miles Bader wrote:
> Joe Perches <joe@xxxxxxxxxxx> writes:
> > It'd be better to use
> >
> > if (!mapping)
> > return 0;
> > return test_bit(AS_UNEVICTABLE, &mapping->flags);
> >
> > to avoid the unnecessary !!
>
> How about
>
> return mapping && test_bit(AS_UNEVICTABLE, &mapping->flags);
>
> instead...?

I'll just add my current patch as a "likely()" clean up. Any other
change should be separate.

Thanks,

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/