btrfs: Allow to add new compression algorithm
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 17 Dec 2010 06:21:50 +0000 (14:21 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 22 Dec 2010 15:15:45 +0000 (23:15 +0800)
commit261507a02ccba9afda919852263b6bc1581ce1ef
treec16bc657ff4e29a87042ceb379487f24dff01035
parent4b72029dc3fd6ba7dc45ccd1cf0aa0ebfa209bd3
btrfs: Allow to add new compression algorithm

Make the code aware of compression type, instead of always assuming
zlib compression.

Also make the zlib workspace function as common code for all
compression types.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
15 files changed:
fs/btrfs/btrfs_inode.h
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/super.c
fs/btrfs/zlib.c