git: sys/vfs/hammer2: Don't fail to lockinit diolk for fchain / vchain

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Aug 4 23:01:34 PDT 2023


commit 7cf689a5ea08a2b72d0e7eb8d788e4cec10925f1
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Fri Aug 4 22:24:23 2023 -0700

    sys/vfs/hammer2: Don't fail to lockinit diolk for fchain / vchain
    
    Since fchain / vchain are both embedded in struct hammer2_dev,
    these two don't get allocated via hammer2_chain_alloc(),
    and as a result ->diolk is never initialized.
    
    This works in DragonFly (likely because all it does is mostly
    zero clear already zero filled ->diolk), but not in FreeBSD.

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7cf689a5ea08a2b72d0e7eb8d788e4cec10925f1


-- 
DragonFly BSD source repository


More information about the Commits mailing list