• Linus Torvalds's avatar
    logfs: initialize superblock entries earlier · cce2c56e
    Linus Torvalds authored
    In particular, s_freeing_list needs to be initialized early, since it is
    used on some of the error paths when mounts fail.  The mapping inode,
    for example, would be initialized and then free'd on an error path
    before s_freeing_list was initialized, but the inode drop operation
    needs the s_freeing_list to be set up.
    
    Normally you'd never see this, because not only is logfs fairly rare,
    but a successful mount will never have any issues.
    Reported-by: default avatarwerner <w.landgraf@ru.ru>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cce2c56e
super.c 16.7 KB