Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-28 20:02:26
Last Modify:2022-05-24 06:42:17 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rate_supers - call function for all active superblocks*@f: function to call*@arg: argument to pass to it* Scans the superblock list and calls given function, passing it* locked superblock and given argument.

Proto:void iterate_supers(void (*f)(struct super_block *, void *), void *arg)

Type:void

Parameter:

TypeParameterName
void (*f
void *arg
683  struct super_block * sb, * p = NULL
685  spin_lock( & sb_lock)
687  If hlist_unhashed( & s_instances) Then Continue
689  s_count++
690  spin_unlock( & sb_lock)
692  lock for reading
693  If s_root && s_flags & SB_BORN Then f(sb, arg)
695  lease a read lock
697  spin_lock( & sb_lock)
698  If p Then Drop a superblock's refcount. The caller must hold sb_lock.
700  p = sb
702  If p Then Drop a superblock's refcount. The caller must hold sb_lock.
704  spin_unlock( & sb_lock)
Caller
NameDescribe
ksys_syncSync everything. We start by waking flusher threads so that most of* writeback runs on all devices in parallel. Then we sync all inodes reliably* which effectively also waits for all flusher threads to finish doing* writeback
do_sync_work
drop_caches_sysctl_handler
quota_sync_all