commit | 14b98fdaf3422fef19718033be9eca7e0b776a26 | [log] [tgz] |
---|---|---|
author | Charlie Shepherd <charlie@ctshepherd.com> | Fri Nov 15 19:47:01 2013 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Nov 29 13:40:36 2013 +0100 |
tree | bdb0f5783e821edb482247c161692ba9528aa060 | |
parent | 21b568350861a2c6eedfef95b70f88faf2fbd32a [diff] |
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>