Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfsmount lock must be held for write

Proto:static void commit_tree(struct mount *mnt)

Type:void

Parameter:

TypeParameterName
struct mount *mnt
878  parent = mnt_parent
880  LIST_HEAD(head)
881  n = containing namespace
883  BUG_ON(parent == mnt)
885  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
886  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(m, & head, mnt_list)
887  containing namespace = n
889  list_splice - join two lists, this is designed for stacks*@list: the new list to add.*@head: the place to add it in the first list.
891  # of mounts in the namespace += pending_mounts
892  pending_mounts = 0
894  __attach_mnt(mnt, parent)
895  vfsmount lock must be held for write
Caller
NameDescribe
attach_recursive_mnt@source_mnt : mount tree to be attached*@nd : place the mount tree @source_mnt is attached*@parent_nd : if non-null, detach the source_mnt from its parent and* store the parent mount and mountpoint dentry