dm log: add flush_header function
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:00 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:00 +0000 (23:52 +0000)
commit20a34a8ecc7d03eaa5054f58169ebff12f5f1f8c
tree87dd9a93e2bd11c8917d9c4bb000c3acb85723c8
parentb09acf1aa79462bdacfe6744b469a17722a52702
dm log: add flush_header function

Introduce flush_header and use it to flush the log device.

Note that we don't have to flush if all the regions transition
from "dirty" to "clean" state.

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