Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:evict_dentries_for_decrypted_inodes

Proto:static void evict_dentries_for_decrypted_inodes(struct fscrypt_master_key *mk)

Type:void

Parameter:

TypeParameterName
struct fscrypt_master_key *mk
637  struct inode * toput_inode = NULL
639  spin_lock( & mk_decrypted_inodes_lock)
642  inode = Back-pointer to the inode
643  spin_lock( & _blocks, i_bytes, maybe i_size )
644  If Misc & ( Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty | Must be set when calling write_inode_now() if i_count is zero | Serves as both a mutex and completion notification) Then
645  spin_unlock( & _blocks, i_bytes, maybe i_size )
646  Continue
648  __iget(inode)
649  spin_unlock( & _blocks, i_bytes, maybe i_size )
650  spin_unlock( & mk_decrypted_inodes_lock)
652  Try to evict the inode's dentries from the dentry cache. If the inode is a* directory, then it can have at most one dentry; however, that dentry may be* pinned by child dentries, so first try to evict the children too.
653  put an inode
654  toput_inode = inode
656  spin_lock( & mk_decrypted_inodes_lock)
659  spin_unlock( & mk_decrypted_inodes_lock)
660  put an inode
Caller
NameDescribe
try_to_lock_encrypted_files