[lkml]   [2010]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC][PATCH 02/10] mm: Remove likely() from mapping_unevictable()
Joe Perches <> 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);



Yossarian was moved very deeply by the absolute simplicity of
this clause of Catch-22 and let out a respectful whistle.
"That's some catch, that Catch-22," he observed.
"It's the best there is," Doc Daneeka agreed.

 \ /
  Last update: 2010-12-10 09:11    [W:0.064 / U:32.544 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site