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
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[sfrench/cifs-2.6.git]
/
include
/
linux
/
if_team.h
diff --git
a/include/linux/if_team.h
b/include/linux/if_team.h
index 30294603526f91060c6ab776c09c03ee156b9b55..d95cae09dea0873a0cb119e63f5c3d6d7c73d823 100644
(file)
--- a/
include/linux/if_team.h
+++ b/
include/linux/if_team.h
@@
-247,7
+247,7
@@
static inline struct team_port *team_get_port_by_index(struct team *team,
static inline int team_num_to_port_index(struct team *team, unsigned int num)
{
- int en_port_count =
ACCESS
_ONCE(team->en_port_count);
+ int en_port_count =
READ
_ONCE(team->en_port_count);
if (unlikely(!en_port_count))
return 0;