Bleeding edge BTRFS on top of a stable kernel

People asked me way too often on how to test new BTRFS features – a reason for me to do this article. It’s nothing special, but you have two possibilities to do it:

Possibility number 1:
You pull the patches you want to test from the git repository of Chris Mason and apply those patches one by one against your kernel sources (patch -p1 < patchfile) - the advantage here is that you can apply other patches too, unrelated to BTRFS.
Possibility number 2:
Git is a wonderful tool and it comes in handy that people use it for kernel development. You can check out sources and merge Chris Masons changes: