Merge tag 'core-rcu-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / fs / seq_file.c
index 79781eb..70f5fdf 100644 (file)
@@ -232,9 +232,12 @@ Fill:
                loff_t pos = m->index;
 
                p = m->op->next(m, p, &m->index);
-               if (pos == m->index)
-                       /* Buggy ->next function */
+               if (pos == m->index) {
+                       pr_info_ratelimited("buggy seq_file .next function %ps "
+                               "did not updated position index\n",
+                               m->op->next);
                        m->index++;
+               }
                if (!p || IS_ERR(p)) {
                        err = PTR_ERR(p);
                        break;