diff options
| author | Richard Narron <[email protected]> | 2017-06-04 23:23:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-06-04 23:33:54 +0000 |
| commit | 239e250e4acbc0104d514307029c0839e834a51a (patch) | |
| tree | ccc60a7da7595267709fc5d36acc6043c2832bae /drivers/gpu/drm/imx/imx-ldb.c | |
| parent | Merge tag 'nfs-for-4.12-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs (diff) | |
| download | kernel-239e250e4acbc0104d514307029c0839e834a51a.tar.gz kernel-239e250e4acbc0104d514307029c0839e834a51a.zip | |
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 <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Will B <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Cc: <[email protected]> # v4.9 and backports of c2a9737f45e2
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
0 files changed, 0 insertions, 0 deletions
