I'm testing a pull with more fixes, but wanted to get this one out soGreg can pick it up. The corruption isn't easy to hit, you have to do areadonly snapshot and have orphans in the snapshot. But my review andtesting missed the bug. Filipe has added a better xfstest to cover it.

Post by Chris MasonHi Linus,I'm testing a pull with more fixes, but wanted to get this one out soGreg can pick it up. The corruption isn't easy to hit, you have to do areadonly snapshot and have orphans in the snapshot. But my review andtesting missed the bug. Filipe has added a better xfstest to cover it.git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus

Sorry Linus, I realized this morning I forgot my sob. I've pushed out anupdated commit to a new for-linus-update branch. The code and diffstat areexactly the same: