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_blocksize

Proto:int set_blocksize(struct block_device *bdev, int size)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
intsize
124  If size > PAGE_SIZE || size < 512 || Not s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false. Then Return -EINVAL
128  If size < bdev_logical_block_size(bdev) Then Return -EINVAL
132  If bd_block_size != size Then
133  Write out and wait upon all the dirty data associated with a block* device via its mapping. Does not take the superblock lock.
134  bd_block_size = size
135  i_blkbits = assumes size > 256
136  Kill _all_ buffers and pagecache , dirty or not..
138  Return 0
Caller
NameDescribe
swsusp_checkswsusp_check - Check for swsusp signature in the resume device
claim_swapfile
SYSCALL_DEFINE2
sb_set_blocksize