Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\drop_caches.c Create Date:2022-07-28 20:31:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:drop_pagecache_sb

Proto:static void drop_pagecache_sb(struct super_block *sb, void *unused)

Type:void

Parameter:

TypeParameterName
struct super_block *sb
void *unused
19  struct inode * inode, * toput_inode = NULL
21  spin_lock( & s_inode_list_lock)
23  spin_lock( & _blocks, i_bytes, maybe i_size )
29  If Misc & ( Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty | Must be set when calling write_inode_now() if i_count is zero | Serves as both a mutex and completion notification) || nrpages == 0 && Not need_resched() Then
31  spin_unlock( & _blocks, i_bytes, maybe i_size )
32  Continue
34  __iget(inode)
35  spin_unlock( & _blocks, i_bytes, maybe i_size )
36  spin_unlock( & s_inode_list_lock)
38  validate_mapping_pages - Invalidate all the unlocked pages of one inode*@mapping: the address_space which holds the pages to invalidate*@start: the offset 'from' which to invalidate*@end: the offset 'to' which to invalidate (inclusive)* This function only
39  put an inode
40  toput_inode = inode
42  cond_resched()
43  spin_lock( & s_inode_list_lock)
45  spin_unlock( & s_inode_list_lock)
46  put an inode