]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/seq_file.c
fs/buffer.c: record blockdev write errors in super_block that it backs
[thirdparty/linux.git] / fs / seq_file.c
index 79781ebd2145e48d6a8735e1f44744054e03029b..70f5fdf99bf690a654ff18ef194a45cc848a7d0d 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;