1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_
3 #define _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_
6 * Spinlock based version of ext2 atomic bitops
9 #define ext2_set_bit_atomic(lock, nr, addr) \
13 ret = __test_and_set_bit_le(nr, addr); \
18 #define ext2_clear_bit_atomic(lock, nr, addr) \
22 ret = __test_and_clear_bit_le(nr, addr); \
27 #endif /* _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_ */