Remove obsolete debugging. Remove a few assert checks. The BKL locking in all of these cases has actually been superceded by the journal datalist spinlock, so the checks should be removed entirely. --- linux-ext3-2.4merge-2/fs/jbd/transaction.c.=K0018=.orig Fri Aug 23 16:18:23 2002 +++ linux-ext3-2.4merge-2/fs/jbd/transaction.c Fri Aug 23 16:24:15 2002 @@ -1547,9 +1547,6 @@ assert_spin_locked(&journal_datalist_lock); transaction = jh->b_transaction; -#ifdef __SMP__ - J_ASSERT (current->lock_depth >= 0); -#endif J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); if (jh->b_jlist != BJ_None) @@ -1983,9 +1980,6 @@ assert_spin_locked(&journal_datalist_lock); -#ifdef __SMP__ - J_ASSERT (current->lock_depth >= 0); -#endif J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); J_ASSERT_JH(jh, jh->b_transaction == transaction || jh->b_transaction == 0); @@ -2068,9 +2062,6 @@ int was_dirty = 0; assert_spin_locked(&journal_datalist_lock); -#ifdef __SMP__ - J_ASSERT_JH(jh, current->lock_depth >= 0); -#endif /* If the buffer is now unused, just drop it. */ if (jh->b_next_transaction == NULL) { __journal_unfile_buffer(jh);