GFS2: Don't try and dealloc own inode
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 10 Jul 2009 20:13:38 +0000 (21:13 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Jul 2009 09:59:50 +0000 (10:59 +0100)
commit1e19a19584b332eb92a573b66b7342fb97e67507
treec02ad1ff429ba770da8bee47c5444be829729666
parenta51b56fff3f04fc5aa66b21a2a6d693ee9862d66
GFS2: Don't try and dealloc own inode

When searching for unlinked, but still allocated inodes during block
allocation, avoid the block relating to the inode that is doing the
allocation. This fixes a hang caused when an unlinked, but still
open, inode tries to allocate some more blocks and lands up
finding itself during the search for deallocatable inodes.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c