projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: remove rest of ACCESS_ONCE() usages
[firefly-linux-kernel-4.4.55.git]
/
mm
/
swapfile.c
diff --git
a/mm/swapfile.c
b/mm/swapfile.c
index 63f55ccb9b260d695ac8e9ae0635014a2c5746af..a7e72103f23bfbf81aad771343dac77c4f4d1958 100644
(file)
--- a/
mm/swapfile.c
+++ b/
mm/swapfile.c
@@
-1312,7
+1312,7
@@
static unsigned int find_next_to_unuse(struct swap_info_struct *si,
else
continue;
}
- count =
ACCESS
_ONCE(si->swap_map[i]);
+ count =
READ
_ONCE(si->swap_map[i]);
if (count && swap_count(count) != SWAP_MAP_BAD)
break;
}