• Steven Whitehouse's avatar
    [GFS2] Fix for root inode ref count bug · 7359a19c
    Steven Whitehouse authored
    Umount is now working correctly again. The bug was due to
    not getting an extra ref count when mounting the fs. We
    should have bumped it by two (once for the internal pointer
    to the root inode from the super block and once for the
    inode hanging off the dcache entry for root).
    
    Also this patch tidys up the code dealing with looking up
    and creating inodes. We now pass Linux inodes (with gfs2_inodes
    attached) rather than the other way around and this reduces code
    duplication in various places.
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    7359a19c
ops_inode.c 26.6 KB