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:This should be equivalent to d_instantiate() + unlock_new_inode(),* with lockdep-related part of unlock_new_inode() done before* anything else. Use that instead of open-coding d_instantiate()/* unlock_new_inode() combinations.

Proto:void d_instantiate_new(struct dentry *entry, struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct dentry *entry
struct inode *inode
1970  BUG_ON(!hlist_unhashed( & de alias list ))
1971  BUG_ON(!inode)
1972  lockdep_annotate_inode_mutex_key(inode)
1973  security_d_instantiate(entry, inode)
1974  spin_lock( & _blocks, i_bytes, maybe i_size )
1975  __d_instantiate(entry, inode)
1976  WARN_ON(!(Misc & Serves as both a mutex and completion notification))
1977  Misc &= ~Serves as both a mutex and completion notification & ~I_CREATING
1978  smp_mb()
1979  wake_up_bit - wake up a waiter on a bit*@word: the word being waited on, a kernel virtual address*@bit: the bit of the word being waited on* There is a standard hashed waitqueue table for generic use
1980  spin_unlock( & _blocks, i_bytes, maybe i_size )