brd: remove support for BLKFLSBUF
authorMike Snitzer <snitzer@redhat.com>
Tue, 25 Oct 2016 14:46:23 +0000 (08:46 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 25 Oct 2016 17:55:25 +0000 (11:55 -0600)
commitff26956875c2f05e12ecec9938411a2c7dfc767d
treea2c977c066b96b721399b917d5ce5b1974d9a65a
parent366f4aea649a65c3735d91b4409d84c771811290
brd: remove support for BLKFLSBUF

Discontinue having the brd driver destructively free all pages in the
ramdisk in response to the BLKFLSBUF ioctl.  Doing so allows a BLKFLSBUF
ioctl issued to a logical partition to destroy pages of the parent brd
device (and all other partitions of that brd device).

This change breaks compatibility - but in this case the compatibility
breaks more than it helps.

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/brd.c