The following patches are against Josef's btrfs-next repository, and depend on Arnd Hannemann's "Btrfs: allow mount -o remount,compress=no" patch.
The method was based on a previous example of checking for lzo INCOMPAT used by Li Zefan when defragmenting with explicit compression ("btrfs: Allow to specify compress method when defrag") in ioctl.c. The second patch uses the new function in the above referenced existing check for lzo INCOMPAT performed when defragmenting with explicit lzo compression. This patch provides no functional changes. Mitch Harder (2): Btrfs: Check INCOMPAT flags on remount with lzo compression Btrfs: Use common function to check lzo INCOMPAT on defrag. fs/btrfs/ctree.h | 1 + fs/btrfs/ioctl.c | 7 +------ fs/btrfs/super.c | 21 ++++++++++++++++++++- 3 files changed, 22 insertions(+), 7 deletions(-) -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html