mirror of
https://github.com/linux-apfs/linux-apfs-rw.git
synced 2026-08-18 02:19:59 -07:00
Increase limit for compressed size of files
A recent cryptex image contains a file with a compressed size above the current 128Mb limit. This limit exists because of vmalloc(), and it can be increased (at least for 64-bit archs). Do that for now, but I really should try to restructure the code to use smaller kmalloc() allocations instead. Signed-off-by: Ernesto A. Fernández <ernesto@corellium.com>
This commit is contained in:
1 parent
d4799475db
commit
1e3fa28c4f
1 file changed
+5
-2
+5
-2
@@ -36,8 +36,11 @@ static inline void *kvmalloc(size_t size, gfp_t flags)
|
||||
|
||||
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) */
|
||||
|
||||
/* maximum size of compressed data currently supported */
|
||||
#define MAX_FBUF_SIZE (128 * 1024 * 1024)
|
||||
/*
|
||||
* Maximum size of compressed data currently supported. This is getting too
|
||||
* big already. TODO: avoid vmalloc().
|
||||
*/
|
||||
#define MAX_FBUF_SIZE (256 * 1024 * 1024)
|
||||
|
||||
struct apfs_compress_file_data {
|
||||
struct apfs_compress_hdr hdr;
|
||||
|
||||
Reference in new issue
Block a user