Pavel Raiskup wrote:
So what about special casing that filesystem, where we can lseek() for holes anyway?
If we can lseek for holes, then why not just do that? We shouldn't need special-case code for btrfs per se. Any filesystem where we can lseek for holes should take advantage of that optimization.