]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.15.5/reiserfs-disable-automatic-enabling-of-reiserfs-inode-attributes.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.15.5 / reiserfs-disable-automatic-enabling-of-reiserfs-inode-attributes.patch
1 From akpm@osdl.org Mon Feb 13 01:41:10 2006
2 From: Jeff Mahoney <jeffm@suse.com>
3 Date: Sun, 12 Feb 2006 22:34:55 +0000 (-0800)
4 Subject: [PATCH] reiserfs: disable automatic enabling of reiserfs inode attributes
5 X-Git-Tag: v2.6.16-rc3
6 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=89edc3d2b429136a0e25f40275fd82dc58f147fd
7
8 [PATCH] reiserfs: disable automatic enabling of reiserfs inode attributes
9
10 Unfortunately, the reiserfs_attrs_cleared bit in the superblock flag can
11 lie. File systems have been observed with the bit set, yet still contain
12 garbage in the stat data field, causing unpredictable results.
13
14 This patch backs out the enable-by-default behavior.
15
16 It eliminates the changes from: d50a5cd860ce721dbeac6a4f3c6e42abcde68cd8,
17 and ef5e5414e7a83eb9b4295bbaba5464410b11e030.
18
19 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
20 Signed-off-by: Andrew Morton <akpm@osdl.org>
21 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
23 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
24 ---
25
26 fs/reiserfs/super.c | 2 --
27 1 files changed, 2 deletions(-)
28
29 --- linux-2.6.15.4.orig/fs/reiserfs/super.c
30 +++ linux-2.6.15.4/fs/reiserfs/super.c
31 @@ -1130,8 +1130,6 @@ static void handle_attrs(struct super_bl
32 "reiserfs: cannot support attributes until flag is set in super-block");
33 REISERFS_SB(s)->s_mount_opt &= ~(1 << REISERFS_ATTRS);
34 }
35 - } else if (le32_to_cpu(rs->s_flags) & reiserfs_attrs_cleared) {
36 - REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_ATTRS);
37 }
38 }
39