git: hammer2 - Refactor reserved block selection in freemap code
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Dec 9 14:51:26 PST 2013
commit a3fd5153b49b22a6959247e242ef7e56e37b6f2e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Dec 9 14:47:11 2013 -0800
hammer2 - Refactor reserved block selection in freemap code
* Refactor the reserved block selection in the freemap code. Move from
4 copies of each freemap block to 15 copies in order to ensure
that any of the four volume header backups (which are rotated on each
flush) can be used at mount-time.
* A better algorithm could use as few as 10 copies but for now I am using
a more trivial algorithm which needs 15.
* No media changes, the 4MB/2GB of space already reserved had sufficient
room.
Summary of changes:
sys/vfs/hammer2/hammer2_disk.h | 69 ++++++++++++++++++++-----
sys/vfs/hammer2/hammer2_freemap.c | 104 +++++++++++++++++++-------------------
2 files changed, 107 insertions(+), 66 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a3fd5153b49b22a6959247e242ef7e56e37b6f2e
--
DragonFly BSD source repository
More information about the Commits
mailing list