Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] reiserfs: enable attrs by default if saf

The following patch enables attrs by default if the reiserfs_attrs_cleared
bit is set in the superblock. This allows chattr-type attrs to be used
without any further action by the user.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jeff Mahoney and committed by
Linus Torvalds
2949ccf9 869eb76e

+2
+2
fs/reiserfs/super.c
··· 1066 1066 reiserfs_warning(s, "reiserfs: cannot support attributes until flag is set in super-block" ); 1067 1067 REISERFS_SB(s) -> s_mount_opt &= ~ ( 1 << REISERFS_ATTRS ); 1068 1068 } 1069 + } else if (le32_to_cpu( rs -> s_flags ) & reiserfs_attrs_cleared) { 1070 + REISERFS_SB(s)->s_mount_opt |= REISERFS_ATTRS; 1069 1071 } 1070 1072 } 1071 1073