add patch move-error-report-out-of-atomic-context
[ext4-patch-queue.git] / explicit-inform-user-about-orphan-list-cleanup
blob06f6d4ea2442ff078a75624274279a6d150a4eb4
1 ext4: explicitly inform user about orphan list cleanup
3 From: Dmitry Monakhov <dmonakhov@openvz.org>
5 Production fs likely compiled/mounted w/o jbd debugging, so orphan
6 list clearing will be silent.
8 Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 ---
11  fs/ext4/super.c |    2 +-
12  1 files changed, 1 insertions(+), 1 deletions(-)
14 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
15 index 2632017..028935f 100644
16 --- a/fs/ext4/super.c
17 +++ b/fs/ext4/super.c
18 @@ -2191,7 +2191,7 @@ static void ext4_orphan_cleanup(struct super_block *sb,
19         if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) {
20                 /* don't clear list on RO mount w/ errors */
21                 if (es->s_last_orphan && !(s_flags & MS_RDONLY)) {
22 -                       jbd_debug(1, "Errors on filesystem, "
23 +                       ext4_msg(sb, KERN_INFO, "Errors on filesystem, "
24                                   "clearing orphan list.\n");
25                         es->s_last_orphan = 0;
26                 }
27 -- 
28 1.7.1
31 To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
32 the body of a message to majordomo@vger.kernel.org
33 More majordomo info at  http://vger.kernel.org/majordomo-info.html