dm thin: avoid unnecessarily breaking sharing for flushes
authorJoe Thornber <ejt@redhat.com>
Fri, 27 Jul 2012 14:08:06 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:06 +0000 (15:08 +0100)
commit600497013687516153cb82637acfe56f7eb9308a
treed44382be55c68208ba7344dfaca8ade10e87c0d5
parent905386f82d08f66726912f303f3e6605248c60a3
dm thin: avoid unnecessarily breaking sharing for flushes

There's no need to break sharing, triggering a copy, for a write that has no
data (i.e. a flush).

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c