search for: __test_and_set_le_bit

Displaying 1 result from an estimated 1 matches for "__test_and_set_le_bit".

2010 Nov 23
0
[PATCH v3 13/22] ocfs2: use little-endian bitops
...s2/ocfs2.h index 1efea36..685f5c5 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h @@ -826,18 +826,21 @@ static inline unsigned int ocfs2_clusters_to_megabytes(struct super_block *sb, static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) { - ext2_set_bit(bit, bitmap); + __test_and_set_le_bit(bit, bitmap); } #define ocfs2_set_bit(bit, addr) _ocfs2_set_bit((bit), (unsigned long *)(addr)) static inline void _ocfs2_clear_bit(unsigned int bit, unsigned long *bitmap) { - ext2_clear_bit(bit, bitmap); + __test_and_clear_le_bit(bit, bitmap); } #define ocfs2_clear_bit(bit, addr) _ocfs2_c...