diff options
| author | KAMEZAWA Hiroyuki <[email protected]> | 2008-10-18 20:28:11 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-10-20 08:52:39 -0700 |
| commit | c05555b572921c464d064d9267f7f7bc06d424fa (patch) | |
| tree | 48d4dbc315eeb4c851c6c484ef75bc816360d510 /include/linux | |
| parent | addb9efebb2ee2202d324e75b593b39868528f68 (diff) | |
memcg: atomic ops for page_cgroup->flags
This patch makes page_cgroup->flags to be atomic_ops and define functions
(and macros) to access it.
Before trying to modify memory resource controller, this atomic operation
on flags is necessary. Most of flags in this patch is for LRU and modfied
under mz->lru_lock but we'll add another flags which is not for LRU soon.
For example, we'll place LOCK bit on flags field. We need atomic
operation to modify LRU bit without LOCK.
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions