]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
Reduce the number of metadata updates done by ddf.
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
commit18a2f463fd26076e943b1a0325c1e036f1038369
treeb8a4936ea897c60545c10edcb646aee5b7c35d43
parent48561b014292e5052da3dc3df629c10d8531d7fd
Reduce the number of metadata updates done by ddf.

1/ track if there are any actual updates pending, and only
   write metadata when we have changed something.

2/ when writing null virtual-configs, write full blocks,
   not just the first 4 bytes.  This will allow O_DIRECT
   writes in a subsequent patch.
super-ddf.c