hammer2 - Try a different approach to bulkfree

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 22 August 2017 00:04 EDT

- Attempt to fix an issue in the previous version where some dirty chains could slip through the gaps and prevent bulkfree from working properly.

- Do a full filesystem sync instead of a partial sync.

- Use the post-sync hmp->volsync structure to obtain the blockref array, interlocked against the sync.

f079a0a hammer2 - Try a different approach to bulkfree
sys/vfs/hammer2/hammer2.h | 6 ++---
sys/vfs/hammer2/hammer2_bulkfree.c | 34 +++------------------------
sys/vfs/hammer2/hammer2_chain.c | 47 ++++++++++++--------------------------
sys/vfs/hammer2/hammer2_flush.c | 2 ++
sys/vfs/hammer2/hammer2_ioctl.c | 40 ++++++++++++++++++++++++--------
5 files changed, 53 insertions(+), 76 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share