Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Given an inode, first check if we care what happens to our children. Inotify* and dnotify both tell their parents about events. If we care about any event* on a child we run all of our children and set a dentry flag saying that the* parent cares

Proto:void __fsnotify_update_child_dentry_flags(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
113  If Not S_ISDIR(i_mode) Then Return
117  watched = fsnotify_inode_watches_children(inode)
119  spin_lock( & _blocks, i_bytes, maybe i_size )
128  spin_lock( & d_lock)
130  If Not Where the name belongs to - NULL is * negative Then Continue
133  spin_lock_nested( & d_lock, DENTRY_D_LOCK_NESTED)
134  If watched Then protected by d_lock |= DCACHE_FSNOTIFY_PARENT_WATCHED
136  Else protected by d_lock &= ~DCACHE_FSNOTIFY_PARENT_WATCHED
138  spin_unlock( & d_lock)
140  spin_unlock( & d_lock)
142  spin_unlock( & _blocks, i_bytes, maybe i_size )
Caller
NameDescribe
__fsnotify_parentNotify this dentry's parent about a child's events.
fsnotify_recalc_maskCalculate mask of events for a list of marks. The caller must make sure* connector and connector->obj cannot disappear under us. Callers achieve* this by holding a mark->lock or mark->group->mark_mutex for a mark on this* list.