Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:58:42
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns true if all buffers are successfully locked

Proto:static bool buffer_migrate_lock_buffers(struct buffer_head *head, enum migrate_mode mode)

Type:bool

Parameter:

TypeParameterName
struct buffer_head *head
enum migrate_modemode
702  bh = head
705  If mode != MIGRATE_ASYNC Then
706  Do
707  lock_buffer(bh)
710  When bh != head cycle
712  Return true
716  Do
717  If Not trylock_buffer(bh) Then
722  failed_bh = bh
723  bh = head
724  When bh != failed_bh cycle
728  Return false
731  bh = circular list of page's buffers
732  When bh != head cycle
733  Return true
Caller
NameDescribe
__buffer_migrate_page