sys/vfs/hammer: Cleanup hammer_format_volume_header() prototype
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 6 Apr 2016 06:30:31 +0000 (15:30 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 6 Apr 2016 12:50:39 +0000 (21:50 +0900)
commitdfe19d867471c82687e95743f9883a375d19b38c
tree1033e5921924a1a0268fae1c036522c46d4d3d59
parent5d8e0f49ad2ab6201288c8b4f5ebb966f27e5779
sys/vfs/hammer: Cleanup hammer_format_volume_header() prototype

No functional changes, just remove some arguments that can be
dereferenced from other pointers since it has way too many args,
plus some refactoring to make it look more like newfs_hammer code
which basically does the same thing.

(It doesn't need to be a generic function by having these fileds
as different arguments. Formatting a volume within kernel space
is specific to this ioctl, and the original design was to format
volumes in userspace. It's also technically possible to implement
hammer volume-add|del mostly in userspace. In fact the current
kernel code which formats volumes looks pretty much identical to
what newfs_hammer does on formatting after below commits, which
is natural thing considering what these commands do.)

c7a9d2e sys/vfs/hammer: Remove hammer_iterate_l1l2_entries()
de75bb2 sys/vfs/hammer: Fix/rewrite hammer_free_freemap()
d8d6680 sys/vfs/hammer: Fix/rewrite hammer_format_freemap()
28cdb63 sys/vfs/hammer: Remove struct bigblock_stat
12d76ce sys/vfs/hammer: Remove hammer_test_free_freemap()
e2c5fb2 sys/vfs/hammer: Separate total/free big-block counting from formatting
sys/vfs/hammer/hammer_volume.c