Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:28
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called by mount code to set a mountpoint and check if the mountpoint is* reachable (e.g. NFS can unhash a directory dentry and then the complete* subtree can become unreachable).* Only one of d_invalidate() and d_set_mounted() must succeed. For

Proto:int d_set_mounted(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
1425  ret = -ENOENT
1426  Lock out other writers and update the count.* Acts like a normal spin_lock/unlock.* Don't need preempt_disable() because that is in the spin_lock already.
1427  When Not linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(p) cycle
1429  spin_lock( & d_lock)
1431  spin_unlock( & d_lock)
1432  Go to out
1434  spin_unlock( & d_lock)
1436  spin_lock( & d_lock)
1437  If Not d_unlinked(dentry) Then
1438  ret = -EBUSY
1439  If Not d_mountpoint(dentry) Then
1441  ret = 0
1444  spin_unlock( & d_lock)
1445  out :
1446  write_sequnlock( & rename_lock)
1447  Return ret
Caller
NameDescribe
get_mountpoint