Bart Van Assche 5e4298be45 brd: Fix discard request processing
Avoid that discard requests with size => PAGE_SIZE fail with
-EIO. Refuse discard requests if the discard size is not a
multiple of the page size.

Fixes: 2dbe54957636 ("brd: Refuse improperly aligned discard requests")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Jan Kara <jack@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Robert Elliot <elliott@hp.com>
Cc: stable <stable@vger.kernel.org> # v4.4+
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-03-15 14:10:29 -07:00
..
2016-01-22 18:04:28 -05:00
2016-01-06 08:25:24 -05:00
2016-03-15 14:10:29 -07:00
2016-01-13 19:37:36 -08:00
2014-08-08 15:57:28 -07:00
2016-03-14 09:06:01 -06:00
2015-09-23 11:01:16 -06:00
2016-03-04 17:20:12 -07:00
2013-11-08 09:10:30 -07:00