[PATCH] befs: Allow file sizes beyond 2GiB

From: Axel DÃrfler
Date: Fri Feb 01 2019 - 08:50:11 EST


Signed-off-by: Axel DÃrfler <axeld@xxxxxxxxxxxxxxxx>
---
fs/befs/linuxvfs.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index a92355cc4..4113d8250 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -899,6 +899,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = BEFS_SUPER_MAGIC;
/* Set real blocksize of fs */
sb_set_blocksize(sb, (ulong) befs_sb->block_size);
+ sb->s_maxbytes = MAX_LFS_FILESIZE;
sb->s_op = &befs_sops;
sb->s_export_op = &befs_export_operations;
root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir)));
--
2.17.1