git: sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jun 13 00:43:05 PDT 2025


commit 4f646c689302763ae40b8a706efab7b1330c539c
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Jun 10 01:25:09 2025 -0700

    sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir
    
    hammer2_xop_readdir() should explicitly use HAMMER2_LOOKUP_ALWAYS
    for chain lookup, as hammer2_vop_readdir() can access chain data
    for (a long enough) dirent name. Note that chain data is loaded
    with or without ALWAYS in this case.

Summary of changes:
 sys/vfs/hammer2/hammer2_xops.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f646c689302763ae40b8a706efab7b1330c539c


-- 
DragonFly BSD source repository


More information about the Commits mailing list