- int blkdev_issue_discard(struct block_device * bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags);
- blockdev to issue discard for
- start sector
- number of sectors to discard
- memory allocation flags (for bio_alloc)
- BLKDEV_IFL_* flags to control behaviour
Issue a discard request for the sectors in question.