---
name: "check_disk_size_change"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/check_disk_size_change"
---

# check\_disk\_size\_change(9)

checks for disk size change and adjusts bdev size.

## NAME

check\_disk\_size\_change - checks for disk size change and adjusts bdev size.

## SYNOPSIS

**void check\_disk\_size\_change(struct gendisk \*** *disk***, struct block\_device \*** *bdev***);**

## ARGUMENTS

*disk*

struct gendisk to check

*bdev*

struct bdev to adjust.

## DESCRIPTION

This routine checks to see if the bdev size does not match the disk size and adjusts it if it differs.

## COPYRIGHT
