BLKDEV_ISSUE_ZEROOUT
Section: Block Devices (9)
Updated: February 2011
Index
Return to Main Contents
NAME
blkdev_issue_zeroout -
SYNOPSIS
-
int blkdev_issue_zeroout(struct block_device * bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask);
ARGUMENTS
bdev
-
- blockdev to issue
sector
-
start sector
nr_sects
-
number of sectors to write
gfp_mask
-
memory allocation flags (for bio_alloc)
DESCRIPTION
Generate and issue number of bios with zerofiled pages. Send barrier at the beginning and at the end if requested. This guarantie correct request ordering. Empty barrier allow us to avoid post queue flush.
COPYRIGHT