Message ID | 20200416220130.13343-5-willy@infradead.org (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | Make PageWriteback use the PageLocked optimisation | expand |
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index a74769940fbd..23e9d36c2ffc 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h @@ -147,6 +147,13 @@ static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *ad clear_bit(nr, addr); } +static inline bool clear_bit_unlock_is_negative_byte(unsigned int nr, + volatile unsigned long *p) +{ + clear_bit_unlock(nr, p); + return test_bit(7, p); +} + /* * change_bit - Toggle a bit in memory * @nr: Bit to change