summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2012-09-18 12:19:29 -0400
committerJens Axboe <axboe@kernel.dk>2012-09-20 14:31:53 +0200
commit66ba32dc167202c3cf8c86806581a9393ec7f488 (patch)
tree61bc596fd84f48a47a28a593435b437371607d6f /include/linux/fs.h
parent579e8f3c7b2ecf7db91398d942d76457a3ddba21 (diff)
downloadop-kernel-dev-66ba32dc167202c3cf8c86806581a9393ec7f488.zip
op-kernel-dev-66ba32dc167202c3cf8c86806581a9393ec7f488.tar.gz
block: ioctl to zero block ranges
Introduce a BLKZEROOUT ioctl which can be used to clear block ranges by way of blkdev_issue_zeroout(). Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Acked-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index aa11047..bd6f6e7 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -335,6 +335,7 @@ struct inodes_stat_t {
#define BLKDISCARDZEROES _IO(0x12,124)
#define BLKSECDISCARD _IO(0x12,125)
#define BLKROTATIONAL _IO(0x12,126)
+#define BLKZEROOUT _IO(0x12,127)
#define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
#define FIBMAP _IO(0x00,1) /* bmap access */
OpenPOWER on IntegriCloud