mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			609 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			609 B
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/include/linux/fs.h	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/include/linux/fs.h	2021-06-07 13:01:34.000000000 +0300
 | |
| @@ -941,9 +941,9 @@
 | |
|  /* Page cache limit. The filesystems should put that into their s_maxbytes 
 | |
|     limits, otherwise bad things can happen in VM. */ 
 | |
|  #if BITS_PER_LONG==32
 | |
| -#define MAX_LFS_FILESIZE	(((loff_t)PAGE_SIZE << (BITS_PER_LONG-1))-1)
 | |
| +#define MAX_LFS_FILESIZE	((loff_t)ULONG_MAX << PAGE_SHIFT)
 | |
|  #elif BITS_PER_LONG==64
 | |
| -#define MAX_LFS_FILESIZE 	((loff_t)0x7fffffffffffffffLL)
 | |
| +#define MAX_LFS_FILESIZE 	((loff_t)LLONG_MAX)
 | |
|  #endif
 | |
|  
 | |
|  #define FL_POSIX	1
 |