Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f6ff53d3 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Jens Axboe
Browse files

block: reorganize rounding of max_discard_sectors


Mostly a preparation for the next patch.

In principle this fixes an infinite loop if max_discard_sectors < granularity,
but that really shouldn't happen.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Acked-by: default avatarVivek Goyal <vgoyal@redhat.com>
Tested-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1a9b4993
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment