From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: PATCH] btrfs: Check transaction start Date: Mon, 30 Mar 2009 19:39:44 +0200 Message-ID: <873acunc4f.fsf@basil.nowhere.org> References: <499392D4.5020709@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Btrfs Development List To: Jeff Mahoney Return-path: In-Reply-To: <499392D4.5020709@suse.com> (Jeff Mahoney's message of "Wed, 11 Feb 2009 22:09:08 -0500") List-ID: Jeff Mahoney writes: > wake_up_process(root->fs_info->cleaner_kthread); > @@ -2197,10 +2199,12 @@ int btrfs_commit_super(struct btrfs_root > btrfs_clean_old_snapshots(root); > mutex_unlock(&root->fs_info->cleaner_mutex); > trans = btrfs_start_transaction(root, 1); > + BUG_ON(IS_ERR(trans)); Would it make sense to use a different macro for things that are expected to be fixed later? BUG_ON_I_SUCK() or TMP_BUG_ON() or something like that? I think that would make it clearer that things are only temporary. At least it should be documented somewhere. -Andi -- ak@linux.intel.com -- Speaking for myself only.