> >>  bool ram_block_discard_is_disabled(void)
> >>  {
> >> -    return qatomic_read(&ram_block_discard_disabled) > 0;
> >> +    return qatomic_read(&ram_block_discard_disablers);
> >>  }
> > return value won't be bool?
>
> The compiler does type conversion.
>
> != 0 -> true
> == 0 -> false
ah... I missed it :(

Thanks,
Pankaj

Reply via email to