From 681fe3f3a7f76e9cde761cf7945d2778c1bc3b51 Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Wed, 10 Aug 2005 11:14:39 -0500 Subject: [PATCH] --- yaml --- r: 5814 b: refs/heads/master c: 8a9cd6d676728792aaee31f30015d284acd154a3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/jfs/jfs_txnmgr.c | 2 ++ trunk/fs/jfs/super.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 230876971b84..f326047b5bcc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a5c96cab8f3c4ca9b2177dceb5de5a0edb31418e +refs/heads/master: 8a9cd6d676728792aaee31f30015d284acd154a3 diff --git a/trunk/fs/jfs/jfs_txnmgr.c b/trunk/fs/jfs/jfs_txnmgr.c index 3555acff12d0..c7a92f9deb2b 100644 --- a/trunk/fs/jfs/jfs_txnmgr.c +++ b/trunk/fs/jfs/jfs_txnmgr.c @@ -657,7 +657,9 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp, /* only anonymous txn. * Remove from anon_list */ + TXN_LOCK(); list_del_init(&jfs_ip->anon_inode_list); + TXN_UNLOCK(); } jfs_ip->atlhead = tlck->next; } else { diff --git a/trunk/fs/jfs/super.c b/trunk/fs/jfs/super.c index c2abdaee0c0b..9ff89720f93b 100644 --- a/trunk/fs/jfs/super.c +++ b/trunk/fs/jfs/super.c @@ -114,6 +114,8 @@ static void jfs_destroy_inode(struct inode *inode) { struct jfs_inode_info *ji = JFS_IP(inode); + BUG_ON(!list_empty(&ji->anon_inode_list)); + spin_lock_irq(&ji->ag_lock); if (ji->active_ag != -1) { struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap;