mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
32 lines
936 B
Diff
32 lines
936 B
Diff
From 993e972df1ed50a12ed3fc9f743ee89e85cb7530 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
Date: Sun, 25 Feb 2018 16:45:51 -0700
|
|
Subject: [PATCH 6/6] Revert "vfs,mm: fix a dead loop in
|
|
truncate_inode_pages_range()"
|
|
|
|
This reverts commit c2a9737f45e27d8263ff9643f994bda9bac0b944.
|
|
|
|
This causes the kernel to not be able to read beyond 8TB on a single
|
|
device.
|
|
---
|
|
mm/filemap.c | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/mm/filemap.c b/mm/filemap.c
|
|
index 125b69f59caa..8c2aedc1e3ae 100644
|
|
--- a/mm/filemap.c
|
|
+++ b/mm/filemap.c
|
|
@@ -2201,10 +2201,6 @@ ssize_t generic_file_buffered_read(struct kiocb *iocb,
|
|
unsigned int prev_offset;
|
|
int error = 0;
|
|
|
|
- if (unlikely(*ppos >= inode->i_sb->s_maxbytes))
|
|
- return 0;
|
|
- iov_iter_truncate(iter, inode->i_sb->s_maxbytes);
|
|
-
|
|
index = *ppos >> PAGE_SHIFT;
|
|
prev_index = ra->prev_pos >> PAGE_SHIFT;
|
|
prev_offset = ra->prev_pos & (PAGE_SIZE-1);
|
|
--
|
|
2.30.0
|
|
|