git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branches 'work.misc' and 'work.dcache' of git://git.kernel.org/pub/scm/linux...
[sfrench/cifs-2.6.git]
/
drivers
/
block
/
rbd.c
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index fa0729c1e776e21834f02caa2d42ac7867c5ad36..d81c653b9bf61587db1684305dc296a85d05818a 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-61,7
+61,7
@@
static int atomic_inc_return_safe(atomic_t *v)
{
unsigned int counter;
- counter = (unsigned int)
__atomic
_add_unless(v, 1, 0);
+ counter = (unsigned int)
atomic_fetch
_add_unless(v, 1, 0);
if (counter <= (unsigned int)INT_MAX)
return (int)counter;