git: usr.sbin/makefs/hammer2: Introduce XOP fifo realloc

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jun 30 01:28:58 PDT 2023


commit 9d036237cbc59969257aaea138ddec5dbd8e181b
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Jun 27 00:30:19 2023 -0700

    usr.sbin/makefs/hammer2: Introduce XOP fifo realloc
    
    Since makefs HAMMER2 used a serialized single threaded xops,
    it was not possible to have more than HAMMER2_XOPFIFO fifo entries.
    
    Change this to realloc XOP fifo whenever it hits current limit.
    This is also what Free|Net|OpenBSD HAMMER2 currently do until they
    support multi-threaded xops.
    
    This makes possible to support VOP_READDIR, and that makes possible
    to support recursive read for "-o R" option.

Summary of changes:
 usr.sbin/makefs/hammer2/hammer2.h        |  7 +++-
 usr.sbin/makefs/hammer2/hammer2_admin.c  | 69 +++++++++++++++++++++-----------
 usr.sbin/makefs/hammer2/hammer2_compat.h |  1 +
 3 files changed, 51 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d036237cbc59969257aaea138ddec5dbd8e181b


-- 
DragonFly BSD source repository


More information about the Commits mailing list