diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index ecb8e05b8b84..c33b407946d0 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c @@ -952,7 +952,7 @@ int diFree(struct inode *ip) * we can link the current iag onto the list at * the head. */ - if ((fwd = imap->im_agctl[agno].inofree) >= 0) { + if ((fwd = imap->im_agctl[agno].inofree) >= 0 && fwd != iagno) { /* read the iag that currently is the head * of the list. */