git: sys/vfs/hammer2: Remove REGFILE/SOFTLINK test in hammer2_inode_create_pfs()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Nov 24 01:52:47 PST 2023


commit ad82725233cc8dd120fc61d0aafb46fa620f4190
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Fri Nov 24 01:15:20 2023 -0800

    sys/vfs/hammer2: Remove REGFILE/SOFTLINK test in hammer2_inode_create_pfs()
    
    This code appeared in 5afbe9d887367290d89391c2d29697655f9fc1da in 2018,
    when inode creation function got split into normal and PFS.
    
    However, PFS inode is always a directory (HAMMER2_OBJTYPE_DIRECTORY),
    so xop->meta.type is never a REGFILE or SOFTLINK.
    See right above this removed code.

Summary of changes:
 sys/vfs/hammer2/hammer2_inode.c | 9 ---------
 1 file changed, 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ad82725233cc8dd120fc61d0aafb46fa620f4190


-- 
DragonFly BSD source repository


More information about the Commits mailing list