qubes-linux-kernel/patches.fixes/novfs-LFS-initialization
2011-04-19 22:09:59 +02:00

26 lines
822 B
Plaintext

From: Sankar P <psankar@novell.com>
Subject: fs: novfs: Initialize super-block with standard macros
Patch-mainline: no
Initialize the super block's maxbytes with MAX_LFS_FILESIZE macro.
Signed-off-by: Sankar P <psankar@novell.com>
Signed-off-by: Samrat Kannikar <ksamrat@novell.com>
Acked-by: Jan Kara <jack@suse.cz>
---
fs/novfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/novfs/inode.c
+++ b/fs/novfs/inode.c
@@ -3825,7 +3825,7 @@ int novfs_fill_super(struct super_block
SB->s_blocksize = PAGE_CACHE_SIZE;
SB->s_blocksize_bits = PAGE_CACHE_SHIFT;
- SB->s_maxbytes = 0xFFFFFFFFFFFFFFFFULL; /* Max file size */
+ SB->s_maxbytes = MAX_LFS_FILESIZE; /* Max file size */
SB->s_op = &novfs_ops;
SB->s_flags |= (MS_NODIRATIME | MS_NODEV | MS_POSIXACL);
SB->s_magic = NOVFS_MAGIC;