函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fsnotify.c Create Date:2022-07-29 10:47:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:snotify_unmount_inodes - an sb is unmounting. handle any watched inodes.*@sb: superblock being unmounted.* Called during unmount with no locks held, so needs to be safe against* concurrent modifiers. We temporarily drop sb->s_inode_list_lock and CAN block.

函数原型:static void fsnotify_unmount_inodes(struct super_block *sb)

返回类型:void

参数:

类型参数名称
struct super_block *sb
40  struct inode * inode, * iput_inode = NULL
42  加自旋锁
49  加自旋锁
50  如果Misc 按位与I_FREEING按位或I_WILL_FREE按位或I_NEW的值则
51  自旋锁解锁
52  继续下一循环
64  如果非atomic_read( & i_count)则
65  自旋锁解锁
66  继续下一循环
69  __iget(inode)
70  自旋锁解锁
71  自旋锁解锁
73  如果iput_inode放置一个索引节点
77  This is the main call to fsnotify. The VFS calls into hook specific functions* in linux/fsnotify.h. Those functions then in turn call here. Here will call* out to all of the registered fsnotify_group. Those groups can then use the
79  snotify_inode_delete - and inode is being evicted from cache, clean up is needed
81  iput_inode等于inode
83  cond_resched()
84  加自旋锁
86  自旋锁解锁
88  如果iput_inode放置一个索引节点
91  wait_var_event( & s_fsnotify_inode_refs, !atomic_long_read( & s_fsnotify_inode_refs))
调用者
名称描述
fsnotify_sb_delete