Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-28 05:44:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Should be called with mutex lock held (typically bd_mutex) of partition* to provide mutual exlusion among writers otherwise seqcount might be* left in wrong state leaving the readers spinning infinitely.

Proto:static inline void part_nr_sects_write(struct hd_struct *part, sector_t size)

Type:void

Parameter:

TypeParameterName
struct hd_struct *part
sector_tsize
774  * nr_sects is protected by sequence counter. One might extend a * partition while IO is happening to it and update of nr_sects * can be non-atomic on 32bit machines with 64bit sector_t. = size
Caller
NameDescribe
blkpg_ioctl