From bbcbbc3b233aa675ca298600118d03e69173b106 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:46 +0100 Subject: [PATCH] Revert "udf: Limit file size to 4TB" This reverts commit db611d177bd28b60672c563ad729f7ef9a628c23. --- fs/udf/super.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fs/udf/super.c b/fs/udf/super.c index d73fe54ee..42efcac34 100755 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -86,13 +86,6 @@ enum { #define UDF_MAX_LVID_NESTING 1000 enum { UDF_MAX_LINKS = 0xffff }; -/* - * We limit filesize to 4TB. This is arbitrary as the on-disk format supports - * more but because the file space is described by a linked list of extents, - * each of which can have at most 1GB, the creation and handling of extents - * gets unusably slow beyond certain point... - */ -#define UDF_MAX_FILESIZE (1ULL << 42) /* These are the "meat" - everything else is stuffing */ static int udf_fill_super(struct super_block *, void *, int); @@ -2308,7 +2301,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) ret = -ENOMEM; goto error_out; } - sb->s_maxbytes = UDF_MAX_FILESIZE; + sb->s_maxbytes = MAX_LFS_FILESIZE; sb->s_max_links = UDF_MAX_LINKS; return 0;