Mauricio Faria de Oliveira
45680967ee
ocfs2: ratelimit the 'max lookup times reached' notice
...
Running stress-ng on ocfs2 completely fills the kernel log with 'max
lookup times reached, filesystem may have nested directories.'
Let's ratelimit this message as done with others in the code.
Test-case:
# mkfs.ocfs2 --mount local $DEV
# mount $DEV $MNT
# cd $MNT
# dmesg -C
# stress-ng --dirdeep 1 --dirdeep-ops 1000
# dmesg | grep -c 'max lookup times reached'
Before:
# dmesg -C
# stress-ng --dirdeep 1 --dirdeep-ops 1000
...
stress-ng: info: [11116] successful run completed in 3.03s
# dmesg | grep -c 'max lookup times reached'
967
After:
# dmesg -C
# stress-ng --dirdeep 1 --dirdeep-ops 1000
...
stress-ng: info: [739] successful run completed in 0.96s
# dmesg | grep -c 'max lookup times reached'
10
# dmesg
[ 259.086086] ocfs2_check_if_ancestor: 1990 callbacks suppressed
[ 259.086092] (stress-ng-dirde,740,1):ocfs2_check_if_ancestor:1091 max lookup times reached, filesystem may have nested directories, src inode: 18007, dest inode: 17940.
...
Link: https://lkml.kernel.org/r/20201001224417.478263-1-mfo@canonical.com
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-15 12:13:37 -08:00
..
2020-12-15 12:13:37 -08:00
2020-06-02 10:59:05 -07:00
2020-06-14 19:04:42 -04:00
2020-08-07 11:33:21 -07:00
2019-05-30 11:26:41 -07:00
2020-10-13 18:38:27 -07:00
2019-05-30 11:25:18 -07:00
2020-06-02 10:59:07 -07:00
2019-05-30 11:25:18 -07:00
2020-08-07 11:33:22 -07:00
2019-07-12 11:05:41 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-06-13 17:34:56 -10:00
2019-05-30 11:25:18 -07:00
2020-07-16 12:35:15 -07:00
2019-05-30 11:25:18 -07:00
2020-08-07 11:33:22 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2020-07-16 12:35:15 -07:00
2019-06-05 17:37:13 +02:00
2020-05-22 08:45:46 -06:00
2019-05-30 11:25:18 -07:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-09-24 15:54:07 -07:00
2019-05-30 11:25:18 -07:00
2019-12-01 13:46:15 -08:00
2017-11-02 11:10:55 +01:00
2020-11-06 23:01:02 -05:00
2020-01-31 10:30:36 -08:00
2020-08-07 11:33:22 -07:00
2020-10-13 18:38:27 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2018-12-28 12:11:45 -08:00
2020-06-10 19:14:18 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2020-12-15 12:13:37 -08:00
2019-05-30 11:25:18 -07:00
2019-06-05 17:37:13 +02:00
2020-06-26 00:27:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:26:41 -07:00
2019-03-05 21:07:13 -08:00
2020-08-07 11:33:21 -07:00
2019-10-31 19:07:42 +01:00
2018-08-17 16:20:27 -07:00
2017-11-02 11:10:55 +01:00
2020-07-16 12:35:15 -07:00
2019-05-30 11:26:41 -07:00
2020-04-02 09:35:25 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2020-06-02 10:59:05 -07:00
2019-05-30 11:25:18 -07:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2020-04-02 09:35:25 -07:00
2019-06-05 17:36:37 +02:00
2020-08-07 11:33:21 -07:00
2020-08-07 11:33:21 -07:00
2020-11-14 11:26:04 -08:00
2019-05-30 11:25:18 -07:00
2016-12-09 16:45:04 +01:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2020-07-16 12:35:15 -07:00
2019-05-30 11:26:41 -07:00