ext2: Set superblock revision when enabling xattr feature
authorJan Kara <jack@suse.cz>
Tue, 22 Jan 2019 11:35:36 +0000 (12:35 +0100)
committerJan Kara <jack@suse.cz>
Tue, 22 Jan 2019 11:35:36 +0000 (12:35 +0100)
commit032cdc39793fc814d78d7302c3e81048a76f3da5
tree502f5cde98039c92900f31d95a869b642f3e8a73
parentf6f5014a1d2c236231358b387d371faddd2ba13c
ext2: Set superblock revision when enabling xattr feature

When setting the first xattr, we automatically enable
EXT2_FEATURE_COMPAT_EXT_ATTR. However we forget to call
ext2_update_dynamic_rev() so in theory if the filesystem was created as
ancient one without features support, this could be missed. The
consequences are minor anyway - since the feature is compat one, only
old e2fsck which does not understand xattrs could do something bad.

Reported-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr.c