[Devel] [PATCH rh7 1/2] Revert "ms/seq_file: fix problem when seeking mid-record"
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Apr 22 21:06:03 MSK 2020
This reverts commit 53d33823be0935ef9388d12782c2c8098812c1b5.
RedHat has fixed the issue in another way,
so no need in backporting mainstream patches, revert them.
https://jira.sw.ru/browse/PSBM-99399
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
fs/seq_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 4dc70b8d6f3be..61fa5f8e8a58b 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -124,7 +124,6 @@ static int traverse(struct seq_file *m, loff_t offset)
}
if (seq_has_overflowed(m))
goto Eoverflow;
- p = m->op->next(m, p, &m->index);
if (pos + m->count > offset) {
m->from = offset - pos;
m->count -= m->from;
@@ -132,6 +131,7 @@ static int traverse(struct seq_file *m, loff_t offset)
}
pos += m->count;
m->count = 0;
+ p = m->op->next(m, p, &m->index);
if (pos == offset)
break;
}
--
2.15.1
More information about the Devel
mailing list