[GFS2] Fix for root inode ref count bug
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 13 Feb 2006 12:27:43 +0000 (12:27 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 13 Feb 2006 12:27:43 +0000 (12:27 +0000)
commit7359a19cc758946aba0e45233b8641256b194884
treed96aaeb2fb239efe6fdb0b4698eb94108719f423
parent18ec7d5c3f434aed9661ed10a9e1f48cdeb4981d
[GFS2] Fix for root inode ref count bug

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: Steven Whitehouse <swhiteho@redhat.com>
12 files changed:
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/inode.h
fs/gfs2/log.c
fs/gfs2/lops.c
fs/gfs2/ops_export.c
fs/gfs2/ops_fstype.c
fs/gfs2/ops_inode.c
fs/gfs2/quota.c
fs/gfs2/recovery.c
fs/gfs2/super.c