Btrfs: share the same code for __record_{new,deleted}_ref