]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.20/0042-ext4-add-missing-save_error_info-to-ext4_error.patch
linux-ti33x-psp 3.2: update to 3.2.21, add libertas fixes
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.20 / 0042-ext4-add-missing-save_error_info-to-ext4_error.patch
1 From 1b72b00b0a3384ac8e6b2ddb6b06132e714e9441 Mon Sep 17 00:00:00 2001
2 From: Theodore Ts'o <tytso@mit.edu>
3 Date: Wed, 30 May 2012 23:00:16 -0400
4 Subject: [PATCH 42/86] ext4: add missing save_error_info() to ext4_error()
6 commit f3fc0210c0fc91900766c995f089c39170e68305 upstream.
8 The ext4_error() function is missing a call to save_error_info().
9 Since this is the function which marks the file system as containing
10 an error, this oversight (which was introduced in 2.6.36) is quite
11 significant, and should be backported to older stable kernels with
12 high urgency.
14 Reported-by: Ken Sumrall <ksumrall@google.com>
15 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
16 Cc: ksumrall@google.com
17 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
18 ---
19  fs/ext4/super.c |    1 +
20  1 file changed, 1 insertion(+)
22 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
23 index c91811e..ab7aa3f 100644
24 --- a/fs/ext4/super.c
25 +++ b/fs/ext4/super.c
26 @@ -480,6 +480,7 @@ void __ext4_error(struct super_block *sb, const char *function,
27         printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: comm %s: %pV\n",
28                sb->s_id, function, line, current->comm, &vaf);
29         va_end(args);
30 +       save_error_info(sb, function, line);
31  
32         ext4_handle_error(sb);
33  }
34 -- 
35 1.7.9.5