-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Akinobu Mita
authored and
Linus Torvalds
committed
Mar 26, 2006
1 parent
744a251
commit 22fbda8
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 930ae745f50088279fdc06057a429f16495b53a2 | ||
refs/heads/master: 765f34fe324bdf0c0544b3404d25aaa511e3834b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ */ |