Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Validate dentries in encrypted directories to make sure we aren't potentially* caching stale dentries after a key has been added.

Proto:static int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
unsigned intflags
304  If Not ( protected by d_lock & Encrypted name (dir key was unavailable) ) Then Return 1
319  If flags & RCU pathwalk mode; semi-internal Then Return -ECHILD
322  dir = dget_parent(dentry)
323  err = fscrypt_get_encryption_info(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
324  valid = Not fscrypt_has_encryption_key(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
325  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
327  If err < 0 Then Return err
330  Return valid