Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24169
b: refs/heads/master
c: 765f34f
h: refs/heads/master
i:
  24167: eedffbe
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 26, 2006
1 parent 744a251 commit 22fbda8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 930ae745f50088279fdc06057a429f16495b53a2
refs/heads/master: 765f34fe324bdf0c0544b3404d25aaa511e3834b
22 changes: 22 additions & 0 deletions trunk/include/asm-generic/bitops/ext2-atomic.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_
#define _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_

#define ext2_set_bit_atomic(lock, nr, addr) \
({ \
int ret; \
spin_lock(lock); \
ret = ext2_set_bit((nr), (unsigned long *)(addr)); \
spin_unlock(lock); \
ret; \
})

#define ext2_clear_bit_atomic(lock, nr, addr) \
({ \
int ret; \
spin_lock(lock); \
ret = ext2_clear_bit((nr), (unsigned long *)(addr)); \
spin_unlock(lock); \
ret; \
})

#endif /* _ASM_GENERIC_BITOPS_EXT2_ATOMIC_H_ */

0 comments on commit 22fbda8

Please sign in to comment.