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:check_for_busy_inodes

Proto:static int check_for_busy_inodes(struct super_block *sb, struct fscrypt_master_key *mk)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
struct fscrypt_master_key *mk
667  busy_count = 0
670  spin_lock( & mk_decrypted_inodes_lock)
672  list_for_each - iterate over a list*@pos: the &struct list_head to use as a loop cursor.*@head: the head for your list.(pos, & List of inodes that were unlocked using this key. This allows the* inodes to be evicted efficiently if the key is removed.)
673  busy_count++
675  If busy_count == 0 Then
676  spin_unlock( & mk_decrypted_inodes_lock)
677  Return 0
682  struct inode * inode = ({
685  __mptr = next
685  Do
685  When 0 cycle
685  })->ci_inode
686  ino = Stat data, not accessed from path walking
688  spin_unlock( & mk_decrypted_inodes_lock)
690  fscrypt_warn(NULL, "%s: %zu inode(s) still busy after removing key with %s %*phN, including ino %lu", s_id, busy_count, master_key_spec_type( & For v1 policy keys: an arbitrary key descriptor which was assigned by* userspace (->descriptor).* For v2 policy keys: a cryptographic hash of this key (->identifier).), master_key_spec_len( & For v1 policy keys: an arbitrary key descriptor which was assigned by* userspace (->descriptor).* For v2 policy keys: a cryptographic hash of this key (->identifier).), (u8 * ) & u, ino)
695  Return -EBUSY
Caller
NameDescribe
try_to_lock_encrypted_files