Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:10:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lock_page_memcg - lock a page->mem_cgroup binding*@page: the page* This function protects unlocked LRU pages from being moved to* another cgroup

Proto:struct mem_cgroup *lock_page_memcg(struct page *page)

Type:struct mem_cgroup

Parameter:

TypeParameterName
struct page *page
1974  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1976  If mem_cgroup_disabled() Then Return NULL
1978  again :
1979  memcg = mem_cgroup
1980  If Value for the false possibility is greater at compile time(!memcg) Then Return NULL
1983  If atomic_read( & * set > 0 if pages under this cgroup are moving to other cgroup.) <= 0 Then Return memcg
1986  spin_lock_irqsave( & taken only while moving_account > 0 , flags)
1987  If memcg != mem_cgroup Then
1988  spin_unlock_irqrestore( & taken only while moving_account > 0 , flags)
1989  Go to again
1997  move_lock_task = current process
1998  move_lock_flags = flags
2000  Return memcg
Caller
NameDescribe
__cancel_dirty_pageThis cancels just the dirty bit on the kernel page itself, it does NOT* actually remove dirty bits on any mmap's that may be around
test_clear_page_writeback
__test_set_page_writeback
page_add_file_rmappage_add_file_rmap - add pte mapping to a file page*@page: the page to add the mapping to*@compound: charge the page as compound or small page* The caller needs to hold the pte lock.
page_remove_file_rmap
mark_buffer_dirtymark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach
iomap_set_page_dirty