Richard Narron
239e250e4a
fs/ufs: Set UFS default maximum bytes per file
...
This fixes a problem with reading files larger than 2GB from a UFS-2
file system:
https://bugzilla.kernel.org/show_bug.cgi?id=195721
The incorrect UFS s_maxsize limit became a problem as of commit
c2a9737f45e2 ("vfs,mm: fix a dead loop in truncate_inode_pages_range()")
which started using s_maxbytes to avoid a page index overflow in
do_generic_file_read().
That caused files to be truncated on UFS-2 file systems because the
default maximum file size is 2GB (MAX_NON_LFS) and UFS didn't update it.
Here I simply increase the default to a common value used by other file
systems.
Signed-off-by: Richard Narron <comet.berkeley@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Will B <will.brokenbourgh2877@gmail.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: <stable@vger.kernel.org> # v4.9 and backports of c2a9737f45e2
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-06-04 16:33:54 -07:00
..
2017-04-20 12:09:55 -06:00
2017-05-05 15:24:52 -04:00
2017-05-02 16:40:27 -07:00
2017-03-28 16:16:52 +02:00
2017-05-05 11:35:35 +01:00
2017-05-12 15:57:15 -07:00
2017-05-10 08:33:17 -07:00
2017-03-02 08:42:31 +01:00
2017-05-24 18:10:54 +02:00
2017-05-12 20:59:10 -05:00
2017-04-20 12:09:55 -06:00
2017-05-04 11:44:37 -04:00
2017-04-26 23:54:06 -04:00
2017-03-09 18:23:27 -08:00
2017-04-20 12:09:55 -06:00
2017-05-08 17:15:14 -07:00
2017-03-03 11:38:56 -08:00
2017-05-13 17:52:16 -07:00
2017-05-13 17:52:16 -07:00
2017-05-08 18:17:56 -07:00
2017-03-09 17:01:10 -08:00
2017-03-02 10:09:00 +11:00
2017-05-20 16:12:30 -07:00
2017-05-24 13:35:20 +02:00
2017-05-08 17:15:14 -07:00
2017-05-08 17:15:14 -07:00
2017-03-02 08:42:32 +01:00
2017-04-13 18:24:21 -07:00
2017-03-02 08:42:31 +01:00
2017-05-10 10:30:46 -07:00
2017-04-19 11:35:55 -07:00
2017-04-19 14:21:23 +02:00
2017-03-17 10:25:59 +09:00
2017-05-10 13:29:23 -07:00
2017-03-02 20:51:15 -05:00
2017-04-20 12:09:55 -06:00
2017-06-04 11:56:53 -07:00
2017-05-23 14:20:58 -04:00
2017-04-20 12:09:55 -06:00
2017-04-25 15:48:06 +02:00
2017-05-28 10:11:48 -07:00
2017-05-28 10:11:49 -07:00
2017-03-02 08:42:31 +01:00
2017-05-05 13:36:10 -07:00
2017-05-29 15:15:27 +02:00
2017-05-30 12:38:59 -07:00
2017-05-10 19:13:03 -07:00
2017-04-19 14:21:23 +02:00
2017-05-24 13:35:20 +02:00
2017-02-24 17:46:57 -08:00
2017-04-08 17:33:32 +02:00
2017-03-02 20:51:15 -05:00
2017-04-26 23:54:06 -04:00
2017-05-13 10:23:12 -07:00
2017-04-24 16:28:02 +02:00
2017-06-04 16:33:54 -07:00
2017-06-02 12:29:03 -07:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:29 +01:00
2017-03-02 20:51:15 -05:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:36 +01:00
2017-04-26 23:54:06 -04:00
2017-05-12 15:43:10 -07:00
2017-05-09 09:12:53 -07:00
2017-03-21 06:44:32 +01:00
2017-04-29 17:47:19 -04:00
2017-04-17 12:52:27 -04:00
2017-03-02 08:42:36 +01:00
2017-06-02 15:07:37 -07:00
2017-05-03 11:47:05 -04:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:32 +01:00
2017-03-24 20:49:31 -07:00
2017-03-20 16:10:34 +01:00
2017-05-09 09:12:53 -07:00
2017-04-17 12:52:26 -04:00
2017-03-02 08:42:31 +01:00
2017-05-08 17:15:13 -07:00
2017-03-02 08:42:35 +01:00
2017-03-13 08:27:34 -06:00
2017-05-09 09:12:53 -07:00
2017-05-09 09:12:53 -07:00
2017-03-02 08:42:37 +01:00
2017-05-08 17:15:14 -07:00
2017-05-08 10:55:27 -07:00
2017-04-26 23:54:06 -04:00
2017-04-21 10:45:01 -04:00
2017-04-10 17:37:35 +02:00
2017-02-27 18:43:46 -08:00
2017-05-12 11:39:59 -07:00
2017-05-12 11:39:59 -07:00
2017-05-08 17:15:12 -07:00
2017-05-12 11:39:59 -07:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:38 +01:00
2017-04-17 12:52:26 -04:00
2017-04-17 12:52:24 -04:00
2017-05-08 17:15:13 -07:00
2017-05-08 17:15:12 -07:00
2017-04-18 11:42:36 -07:00
2017-05-02 11:38:06 -07:00
2017-05-02 11:54:26 -07:00
2017-04-17 12:52:23 -04:00
2017-04-20 12:09:55 -06:00
2017-03-01 12:53:44 +01:00
2017-04-08 00:47:48 -07:00
2017-04-17 12:52:23 -04:00
2017-05-08 17:15:13 -07:00