[Devel,rh7,1/4] Revert "ext4: fix seek_data soft lookup on sparse files"

Submitted by Andrey Ryabinin on April 27, 2017, 8 a.m.

Details

Message ID 20170427080027.1282-1-aryabinin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Ryabinin April 27, 2017, 8 a.m.
This reverts commit a8b68fd3911361dbaf66da6786eb3a6d472177c6.

We are going to apply a better fix for seek_data slowness,
so this commit is no longer needed.

https://jira.sw.ru/browse/PSBM-65551
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 fs/ext4/file.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 167e262..c63d937 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -612,17 +612,7 @@  static loff_t ext4_seek_data(struct file *file, loff_t offset, loff_t maxsize)
 			if (unwritten)
 				break;
 		}
-		if (signal_pending(current)) {
-			mutex_unlock(&inode->i_mutex);
-			return -EINTR;
-		}
-		if (need_resched()) {
-			mutex_unlock(&inode->i_mutex);
-			cond_resched();
-			mutex_lock(&inode->i_mutex);
-			isize = inode->i_size;
-			end = isize >> blkbits;
-		}
+
 		last++;
 		dataoff = (loff_t)last << blkbits;
 	} while (last <= end);