summaryrefslogtreecommitdiff
path: root/fs/squashfs/Makefile
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2013-10-28 09:26:30 +0400
committerPhillip Lougher <phillip@squashfs.org.uk>2013-11-20 07:35:18 +0400
commitcd59c2ec5f37a2bc1315c9324aab6c21d43ffa1a (patch)
tree10c3dca3e50bdc1f58f025f02cd85a2bfd8d3420 /fs/squashfs/Makefile
parent9508c6b90b3f57ecea4e7a896cf8325400fc0c6e (diff)
downloadlinux-cd59c2ec5f37a2bc1315c9324aab6c21d43ffa1a.tar.xz
squashfs: Enhance parallel I/O
Now squashfs have used for only one stream buffer for decompression so it hurts parallel read performance so this patch supports multiple decompressor to enhance performance parallel I/O. Four 1G file dd read on KVM machine which has 2 CPU and 4G memory. dd if=test/test1.dat of=/dev/null & dd if=test/test2.dat of=/dev/null & dd if=test/test3.dat of=/dev/null & dd if=test/test4.dat of=/dev/null & old : 1m39s -> new : 9s * From v1 * Change comp_strm with decomp_strm - Phillip * Change/add comments - Phillip Signed-off-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'fs/squashfs/Makefile')
-rw-r--r--fs/squashfs/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/squashfs/Makefile b/fs/squashfs/Makefile
index c223c8439c21..dfebc3b12d61 100644
--- a/fs/squashfs/Makefile
+++ b/fs/squashfs/Makefile
@@ -4,8 +4,15 @@
obj-$(CONFIG_SQUASHFS) += squashfs.o
squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o
-squashfs-y += namei.o super.o symlink.o decompressor.o decompressor_single.o
+squashfs-y += namei.o super.o symlink.o decompressor.o
+
squashfs-$(CONFIG_SQUASHFS_XATTR) += xattr.o xattr_id.o
squashfs-$(CONFIG_SQUASHFS_LZO) += lzo_wrapper.o
squashfs-$(CONFIG_SQUASHFS_XZ) += xz_wrapper.o
squashfs-$(CONFIG_SQUASHFS_ZLIB) += zlib_wrapper.o
+
+ifdef CONFIG_SQUASHFS_MULTI_DECOMPRESSOR
+ squashfs-y += decompressor_multi.o
+else
+ squashfs-y += decompressor_single.o
+endif