]> git.baikalelectronics.ru Git - kernel.git/commit
Add BLKDISCARD ioctl to allow userspace to discard sectors
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 11 Aug 2008 14:58:42 +0000 (15:58 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:02 +0000 (08:56 +0200)
commit350724770585964241a9fbbddc9d8ba85eca23db
tree91a8161cb09536ab838ef47fceabb0da0bea9256
parentc5cda719b6fbcce3da399512501cfa624976bd60
Add BLKDISCARD ioctl to allow userspace to discard sectors

We may well want mkfs tools to use this to mark the whole device as
unwanted before they format it, for example.

The ioctl takes a pair of uint64_ts, which are start offset and length
in _bytes_. Although at the moment it might make sense for them both to
be in 512-byte sectors, I don't want to limit the ABI to that.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/compat_ioctl.c
block/ioctl.c
include/linux/fs.h