dm thin: implement thin_merge
authorMike Snitzer <snitzer@redhat.com>
Thu, 9 Oct 2014 19:24:12 +0000 (15:24 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:27 +0000 (15:25 -0500)
commit36f12aeb714fc04752997d6c07b6afb2fa0ac947
tree8f793a3116525db10450b28d01a4db009bab25c7
parent148e51baf8e7ae2070ec47c2a0ec05ddf6a47da1
dm thin: implement thin_merge

Introduce thin_merge so that any additional constraints from the data
volume may be taken into account when determing the maximum number of
sectors that can be issued relative to the specified logical offset.

This is particularly important if/when the data volume is layered ontop
of a more sophisticated device (e.g. dm-raid or some other DM target).

Reviewed-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c