diff options
| author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-12-15 16:38:22 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-12 09:08:53 -0700 |
| commit | 1a8f4a490871df59d1f3cfe28fae4458d2cbef7f (patch) | |
| tree | 64261037c7de577027287def57b43b83d386dc7c /include/linux/debugobjects.h | |
| parent | 93272beafa9d9a5933590c90d2fa525e86e67032 (diff) | |
brd: Fix discard request processing
commit 5e4298be45e83ecdffaabb370eea9396889b07f1 upstream.
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>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
