Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Destroy all marks attached to an object via connector

Proto:void fsnotify_destroy_marks(fsnotify_connp_t *connp)

Type:void

Parameter:

TypeParameterName
fsnotify_connp_t *connp
768  struct fsnotify_mark * mark, * old_mark = NULL
772  conn = Get mark connector, make sure it is alive and return with its lock held.* This is for users that get connector pointer from inode or mount. Users that* hold reference to a mark on the list may directly lock connector->lock as
773  If Not conn Then Return
783  fsnotify_get_mark(mark)
784  spin_unlock( & lock)
785  If old_mark Then fsnotify_put_mark(old_mark)
787  old_mark = mark
788  fsnotify_destroy_mark(mark, Group this mark is for. Set on mark creation, stable until last ref * is dropped )
789  spin_lock( & lock)
796  objp = fsnotify_detach_connector_from_object(conn, & type)
797  spin_unlock( & lock)
798  If old_mark Then fsnotify_put_mark(old_mark)
800  Drop object reference originally held by a connector