ext4: MMP: fix error message rate-limiting logic in kmmpd
authorNikitas Angelinas <nikitasangelinas@gmail.com>
Tue, 18 Oct 2011 14:51:51 +0000 (10:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Oct 2011 14:51:51 +0000 (10:51 -0400)
commitbdfc230f33a9dab316dcb6be4696ae59e1562e3c
tree6e5d3d17ed45f78b6597c42648cd57e0b4520103
parent215fc6af739d2dfdcad5496248d0d6302eb8a604
ext4: MMP: fix error message rate-limiting logic in kmmpd

Current logic would print an error message only once, and then
'failed_writes' would stay at 1.  Rework the loop to increment
'failed_writes' and print the error message every
s_mmp_update_interval * 60 seconds, as intended according to the
comment.

Signed-off-by: Nikitas Angelinas <nikitas_angelinas@xyratex.com>
Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/mmp.c
This page took 0.029045 seconds and 5 git commands to generate.