Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\badblocks.c Create Date:2022-07-28 17:24:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ack_all_badblocks() - Acknowledge all bad blocks in a list.*@bb: the badblocks structure that holds all badblock information* This only succeeds if ->changed is clear. It is used by* in-kernel metadata updates

Proto:void ack_all_badblocks(struct badblocks *bb)

Type:void

Parameter:

TypeParameterName
struct badblocks *bb
435  If badblock list == NULL || changed Then Return
438  write_seqlock_irq( & lock)
440  If changed == 0 && there probably are unacknowledged * bad blocks. This is only cleared * when a read discovers none Then
441  p = badblock list
445  If Not BB_ACK(p[i]) Then
446  start = BB_OFFSET(p[i])
447  len = BB_LEN(p[i])
449  p[i] = BB_MAKE(start, len, 1)
452  there probably are unacknowledged * bad blocks. This is only cleared * when a read discovers none = 0
454  write_sequnlock_irq( & lock)