defrag: add options to _defrag helper
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 13 Aug 2014 01:16:49 +0000 (11:16 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 13 Aug 2014 01:16:49 +0000 (11:16 +1000)
commit2f87a77e0f0769cd01128e465a0424ba0d83fe43
tree2de5af89253b8a5c800beb9d0c637076bd22435d
parent6bcae5cbe4a3c1cf990ee7c972494360c00611c7
defrag: add options to _defrag helper

Sometimes it is not easy to know number of expected extents in advance.
In that case it is reasonable to provide sane MIN and MAX values.
Also helper will check that number of extents before defragmentaion
is not greather than after.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/defrag
tests/generic/018