dm snapshot: make bio optional in __origin_write
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:28 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:28 +0000 (23:52 +0000)
commit9eaae8ffbc340fc034fed1e5d0dc9ca0e943f817
treeb40361de2cde4ecd14f569a82b18df87f7f9cbc7
parentc2f3d24b783fda20618b73d65678eb5dfae31a5d
dm snapshot: make bio optional in __origin_write

To support the merging of snapshots back into their origin we need
to trigger exceptions in other snapshots not being merged without
any incoming bio on the origin device.  The bio parameter to
__origin_write() becomes optional and the sector needs supplying
separately.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c