COW: Speed up writes
authorCharlie Shepherd <charlie@ctshepherd.com>
Fri, 15 Nov 2013 18:47:01 +0000 (19:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Nov 2013 12:40:36 +0000 (13:40 +0100)
commit14b98fdaf3422fef19718033be9eca7e0b776a26
treebdb0f5783e821edb482247c161692ba9528aa060
parent21b568350861a2c6eedfef95b70f88faf2fbd32a
COW: Speed up writes

Process a whole sector's worth of COW bits by reading a sector, setting
the bits after skipping any already set bits, then writing it out again.
Make sure we only flush once before writing metadata, and only if we
need to write metadata.

Signed-off-by: Charlie Shepherd <charlie@ctshepherd.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/cow.c