Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:process a list of expirable mountpoints with the intent of discarding any* mountpoints that aren't in use and haven't been touched since last we came* here

Proto:void mark_mounts_for_expiry(struct list_head *mounts)

Type:void

Parameter:

TypeParameterName
struct list_head *mounts
2883  LIST_HEAD(graveyard)
2885  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
2888  namespace_lock()
2889  lock_mount_hash()
2898  If Not xchg( & true if marked for expiry , 1) || heck if the mount 'mnt' can be unmounted successfully.*@mnt: the mount to be checked for unmount* NOTE: unmounting 'mnt' would naturally propagate to all* other mounts its parent propagates to.* Check if any of these mounts that **do not have submounts** Then Continue
2901  list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
2903  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
2904  mnt = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & graveyard, structmount, mnt_expire)
2905  vfsmount lock must be held for write
2906  mount_lock must be held* namespace_sem must be held for write
2908  unlock_mount_hash()
2909  namespace_unlock()