DragonFly commits List (threaded) for 2012-02
git: hammer2 hammer2 - Implement more of the hammer2_chain infrastructure
Author: Matthew Dillon <email@example.com>
Date: Sun Feb 12 11:23:17 2012 -0800
hammer2 - Implement more of the hammer2_chain infrastructure
* Allocate system structures through their chain type.
* Implement core lookup and iteration code
* Non-terminal media objects which are smaller than HAMMER2_PBUFSIZE (64K)
cannot hold onto their buffer cache buffer without deadlocking against
or interfering with the chain.
This is just inodes for now. An embedded copy of the media data is
retained (I had removed it before thinking I could just map the bp but
it doesn't work, so it goes back in).
* Data references for other media objects can be temporary and allocated.
The chain locking and unlocking code will instantiate and destroy the
allocated copy as needed.
This also enforces the chain locking requirement for media data access.
* hammer2_chain_create() skeleton added (cannot create indirect blocks yet).
* hammer2_chain_delete() does nothing atm.
* tested with mount/umount.
Summary of changes:
sys/vfs/hammer2/Makefile | 2 +-
sys/vfs/hammer2/hammer2.h | 128 ++++--
sys/vfs/hammer2/hammer2_chain.c | 861 ++++++++++++++++++++++++++++---------
sys/vfs/hammer2/hammer2_disk.h | 13 +-
sys/vfs/hammer2/hammer2_freemap.c | 116 +++++
sys/vfs/hammer2/hammer2_inode.c | 16 +-
sys/vfs/hammer2/hammer2_subr.c | 22 +-
sys/vfs/hammer2/hammer2_vfsops.c | 52 ++-
8 files changed, 930 insertions(+), 280 deletions(-)
create mode 100644 sys/vfs/hammer2/hammer2_freemap.c
DragonFly BSD source repository