Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-28 20:14:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_init_blocksize

Proto:static void set_init_blocksize(struct block_device *bdev)

Type:void

Parameter:

TypeParameterName
struct block_device *bdev
109  bsize = bdev_logical_block_size(bdev)
110  size = NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
112  When bsize < PAGE_SIZE cycle
113  If size & bsize Then Break
115  bsize <<= 1
117  bd_block_size = bsize
118  i_blkbits = assumes size > 256
Caller
NameDescribe
__blkdev_getd_mutex locking:* mutex_lock(part->bd_mutex)* mutex_lock_nested(whole->bd_mutex, 1)