Given that it's the same filesystem on the same machine that's failing to mount I've marked this as dupe; the backtrace ends similarly but is not identical in the previous bits of it:
[ 319.061293] kernel BUG at /home/kernel-ppa/COD/linux/fs/btrfs/tree-log.c:820! [ 319.061329] invalid opcode: 0000 [#1] SMP [ 319.061365] last sysfs file: /sys/devices/virtual/bdi/btrfs-1/uevent [ 319.061398] CPU 0 [ 319.061411] Modules linked in: dm_crypt snd_hda_codec_hdmi ipt_REJECT ipt_LOG xt_multiport xt_limit xt_tcpudp ipt_addrtype snd_hda_codec_realtek xt_state snd_hda_intel snd_hda_codec snd_hwdep arc4 snd_pcm ip6table_filter snd_seq_midi ip6_tables snd_rawmidi uvcvideo nf_nat_irc snd_seq_midi_event videodev iwlagn snd_seq nf_conntrack_irc snd_timer nf_nat_ftp nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 snd_seq_device nf_conntrack_ftp btusb nf_conntrack v4l2_compat_ioctl32 snd iwlcore bluetooth soundcore mac80211 iptable_filter i7core_edac ip_tables x_tables cfg80211 snd_page_alloc edac_core ir_lirc_codec lirc_dev ideapad_laptop sparse_keymap rc_rc6_mce ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder ene_ir rc_core lp parport btrfs zlib_deflate libcrc32c uvesafb usb_storage uas tg3 ahci libahci video [ 319.062108] [ 319.062120] Pid: 1144, comm: mount Not tainted 2.6.38-02063808-generic #201106040910 LENOVO 20035 /Base Board Product Name [ 319.062211] RIP: 0010:[<ffffffffa00d011c>] [<ffffffffa00d011c>] add_inode_ref+0x47c/0x4a0 [btrfs] [ 319.062271] RSP: 0018:ffff880110eb1858 EFLAGS: 00010246 [ 319.062300] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffffffa00addf5 [ 319.062336] RDX: 0000000100000770 RSI: ffffffffa00a0880 RDI: 0000000000000286 [ 319.062371] RBP: ffff880110eb1908 R08: ffff8800bf417eb0 R09: 0000000000000000 [ 319.062407] R10: 8000000000000000 R11: 0000000000000000 R12: ffff880134a135d8 [ 319.062442] R13: ffff880110eb1aa8 R14: 0000000000000097 R15: 6db6db6db6db6db7 [ 319.062478] FS: 00007f11de0b7800(0000) GS:ffff8800bf400000(0000) knlGS:0000000000000000 [ 319.062518] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 319.062548] CR2: 00007f1a12c02f20 CR3: 0000000133c8b000 CR4: 00000000000006f0 [ 319.062583] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 319.062619] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 319.062654] Process mount (pid: 1144, threadinfo ffff880110eb0000, task ffff880114448000) [ 319.062694] Stack: [ 319.062707] 8bb0000100000001 0000000000000000 0000000000000000 0000000234a135d8 [ 319.062762] ffff880134a135d8 ffff880134b00090 ffff880114786800 ffff880114784800 [ 319.062817] ffff880134afd000 ffff88011204d0f8 0000000000000000 000000000002f06d [ 319.062872] Call Trace: [ 319.062897] [<ffffffffa00c0a4a>] ? read_extent_buffer+0xda/0x1a0 [btrfs] [ 319.064383] [<ffffffffa00d2089>] replay_one_buffer+0x279/0x330 [btrfs] [ 319.065871] [<ffffffffa00d13be>] walk_down_log_tree+0x2be/0x4a0 [btrfs] [ 319.067355] [<ffffffffa00d1674>] walk_log_tree+0xd4/0x230 [btrfs] [ 319.068830] [<ffffffff815b46de>] ? mutex_lock+0x1e/0x50 [ 319.070306] [<ffffffffa00d26a5>] btrfs_recover_log_trees+0x205/0x2f0 [btrfs] [ 319.071796] [<ffffffffa00d1e10>] ? replay_one_buffer+0x0/0x330 [btrfs] [ 319.073305] [<ffffffffa0099db4>] ? btree_read_extent_buffer_pages+0x74/0xc0 [btrfs] [ 319.074838] [<ffffffffa009bb35>] open_ctree+0x1305/0x1480 [btrfs] [ 319.076366] [<ffffffff81162a9c>] ? set_anon_super+0x7c/0x120 [ 319.077901] [<ffffffffa007a24e>] btrfs_fill_super+0x7e/0x140 [btrfs] [ 319.079445] [<ffffffff81163f98>] ? sget+0x238/0x260 [ 319.080991] [<ffffffff812d813f>] ? strlcpy+0x4f/0x70 [ 319.082526] [<ffffffffa007b92b>] btrfs_mount+0x31b/0x3b0 [btrfs] [ 319.084069] [<ffffffff8114757b>] ? alloc_pages_current+0xab/0x110 [ 319.085601] [<ffffffff81163489>] vfs_kern_mount+0x89/0x230 [ 319.087122] [<ffffffff81163723>] do_kern_mount+0x53/0xb0 [ 319.088637] [<ffffffff8117fdda>] do_new_mount+0x7a/0xb0 [ 319.090141] [<ffffffff811804a8>] do_mount+0x188/0x1d0 [ 319.091595] [<ffffffff8118057f>] sys_mount+0x8f/0xd0 [ 319.093009] [<ffffffff8100c002>] system_call_fastpath+0x16/0x1b [ 319.094385] Code: 48 8b 7d 90 48 89 04 24 e8 e2 1e fd ff 85 c0 75 1e 48 8b 55 a0 48 8b 75 88 48 8b 7d 90 e8 dd 1d fd ff e9 ed fc ff ff 0f 0b eb fe <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f [ 319.097679] RIP [<ffffffffa00d011c>] add_inode_ref+0x47c/0x4a0 [btrfs] [ 319.099130] RSP <ffff880110eb1858> [ 319.100603] ---[ end trace a35776a035773885 ]---
Given that it's the same filesystem on the same machine that's failing to mount I've marked this as dupe; the backtrace ends similarly but is not identical in the previous bits of it:
[ 319.061293] kernel BUG at /home/kernel- ppa/COD/ linux/fs/ btrfs/tree- log.c:820! virtual/ bdi/btrfs- 1/uevent codec_realtek xt_state snd_hda_intel snd_hda_codec snd_hwdep arc4 snd_pcm ip6table_filter snd_seq_midi ip6_tables snd_rawmidi uvcvideo nf_nat_irc snd_seq_midi_event videodev iwlagn snd_seq nf_conntrack_irc snd_timer nf_nat_ftp nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 snd_seq_device nf_conntrack_ftp btusb nf_conntrack v4l2_compat_ioctl32 snd iwlcore bluetooth soundcore mac80211 iptable_filter i7core_edac ip_tables x_tables cfg80211 snd_page_alloc edac_core ir_lirc_codec lirc_dev ideapad_laptop sparse_keymap rc_rc6_mce ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder ene_ir rc_core lp parport btrfs zlib_deflate libcrc32c uvesafb usb_storage uas tg3 ahci libahci video 02063808- generic #201106040910 LENOVO 20035 /Base Board Product Name ffffffffa00d011 c>] [<ffffffffa00d0 11c>] add_inode_ ref+0x47c/ 0x4a0 [btrfs] eb1858 EFLAGS: 00010246 0(0000) GS:ffff8800bf40 0000(0000) knlGS:000000000 0000000 a4a>] ? read_extent_ buffer+ 0xda/0x1a0 [btrfs] 089>] replay_ one_buffer+ 0x279/0x330 [btrfs] 3be>] walk_down_ log_tree+ 0x2be/0x4a0 [btrfs] 674>] walk_log_ tree+0xd4/ 0x230 [btrfs] 6de>] ? mutex_lock+ 0x1e/0x50 6a5>] btrfs_recover_ log_trees+ 0x205/0x2f0 [btrfs] e10>] ? replay_ one_buffer+ 0x0/0x330 [btrfs] db4>] ? btree_read_ extent_ buffer_ pages+0x74/ 0xc0 [btrfs] b35>] open_ctree+ 0x1305/ 0x1480 [btrfs] a9c>] ? set_anon_ super+0x7c/ 0x120 24e>] btrfs_fill_ super+0x7e/ 0x140 [btrfs] f98>] ? sget+0x238/0x260 13f>] ? strlcpy+0x4f/0x70 92b>] btrfs_mount+ 0x31b/0x3b0 [btrfs] 57b>] ? alloc_pages_ current+ 0xab/0x110 489>] vfs_kern_ mount+0x89/ 0x230 723>] do_kern_ mount+0x53/ 0xb0 dda>] do_new_ mount+0x7a/ 0xb0 4a8>] do_mount+ 0x188/0x1d0 57f>] sys_mount+0x8f/0xd0 002>] system_ call_fastpath+ 0x16/0x1b 11c>] add_inode_ ref+0x47c/ 0x4a0 [btrfs]
[ 319.061329] invalid opcode: 0000 [#1] SMP
[ 319.061365] last sysfs file: /sys/devices/
[ 319.061398] CPU 0
[ 319.061411] Modules linked in: dm_crypt snd_hda_codec_hdmi ipt_REJECT ipt_LOG xt_multiport xt_limit xt_tcpudp ipt_addrtype snd_hda_
[ 319.062108]
[ 319.062120] Pid: 1144, comm: mount Not tainted 2.6.38-
[ 319.062211] RIP: 0010:[<
[ 319.062271] RSP: 0018:ffff880110
[ 319.062300] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffffffa00addf5
[ 319.062336] RDX: 0000000100000770 RSI: ffffffffa00a0880 RDI: 0000000000000286
[ 319.062371] RBP: ffff880110eb1908 R08: ffff8800bf417eb0 R09: 0000000000000000
[ 319.062407] R10: 8000000000000000 R11: 0000000000000000 R12: ffff880134a135d8
[ 319.062442] R13: ffff880110eb1aa8 R14: 0000000000000097 R15: 6db6db6db6db6db7
[ 319.062478] FS: 00007f11de0b780
[ 319.062518] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 319.062548] CR2: 00007f1a12c02f20 CR3: 0000000133c8b000 CR4: 00000000000006f0
[ 319.062583] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 319.062619] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 319.062654] Process mount (pid: 1144, threadinfo ffff880110eb0000, task ffff880114448000)
[ 319.062694] Stack:
[ 319.062707] 8bb0000100000001 0000000000000000 0000000000000000 0000000234a135d8
[ 319.062762] ffff880134a135d8 ffff880134b00090 ffff880114786800 ffff880114784800
[ 319.062817] ffff880134afd000 ffff88011204d0f8 0000000000000000 000000000002f06d
[ 319.062872] Call Trace:
[ 319.062897] [<ffffffffa00c0
[ 319.064383] [<ffffffffa00d2
[ 319.065871] [<ffffffffa00d1
[ 319.067355] [<ffffffffa00d1
[ 319.068830] [<ffffffff815b4
[ 319.070306] [<ffffffffa00d2
[ 319.071796] [<ffffffffa00d1
[ 319.073305] [<ffffffffa0099
[ 319.074838] [<ffffffffa009b
[ 319.076366] [<ffffffff81162
[ 319.077901] [<ffffffffa007a
[ 319.079445] [<ffffffff81163
[ 319.080991] [<ffffffff812d8
[ 319.082526] [<ffffffffa007b
[ 319.084069] [<ffffffff81147
[ 319.085601] [<ffffffff81163
[ 319.087122] [<ffffffff81163
[ 319.088637] [<ffffffff8117f
[ 319.090141] [<ffffffff81180
[ 319.091595] [<ffffffff81180
[ 319.093009] [<ffffffff8100c
[ 319.094385] Code: 48 8b 7d 90 48 89 04 24 e8 e2 1e fd ff 85 c0 75 1e 48 8b 55 a0 48 8b 75 88 48 8b 7d 90 e8 dd 1d fd ff e9 ed fc ff ff 0f 0b eb fe <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f 0b eb fe 0f
[ 319.097679] RIP [<ffffffffa00d0
[ 319.099130] RSP <ffff880110eb1858>
[ 319.100603] ---[ end trace a35776a035773885 ]---