diff options
| author | Roman Gushchin <[email protected]> | 2024-07-26 20:31:10 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:25:51 -0700 |
| commit | 57979fabff554bf4d1edeeee69251b22ca9bf55e (patch) | |
| tree | 8a46efc7e788296316151d1142fde163471ae750 /include/linux/hex.h | |
| parent | 941ce635234162c420c9185816c59f7d5dd1ad07 (diff) | |
mm: page_counters: initialize usage using ATOMIC_LONG_INIT() macro
When a page_counter structure is initialized, there is no need to use an
atomic set operation to initialize the usage counter because at this point
the structure is not visible to anybody else. ATOMIC_LONG_INIT() is what
should be used in such cases.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Roman Gushchin <[email protected]>
Acked-by: Shakeel Butt <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/hex.h')
0 files changed, 0 insertions, 0 deletions