Commit a1364167 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Linus Torvalds

[PATCH] ext3/ea: set the EXT3_FEATURE_COMPAT_EXT_ATTR for in-inode xattrs

The xattr feature was only set when creating an xattr block. Also set it
when creating in-inode xattrs.
Signed-off-by: default avatarAndreas Gruenbacher <agruen@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dd78b6a4
...@@ -823,7 +823,6 @@ ext3_xattr_block_set(handle_t *handle, struct inode *inode, ...@@ -823,7 +823,6 @@ ext3_xattr_block_set(handle_t *handle, struct inode *inode,
error = ext3_journal_dirty_metadata(handle, new_bh); error = ext3_journal_dirty_metadata(handle, new_bh);
if (error) if (error)
goto cleanup; goto cleanup;
ext3_xattr_update_super_block(handle, sb);
} }
} }
...@@ -1001,6 +1000,7 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index, ...@@ -1001,6 +1000,7 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
} }
} }
if (!error) { if (!error) {
ext3_xattr_update_super_block(handle, inode->i_sb);
inode->i_ctime = CURRENT_TIME_SEC; inode->i_ctime = CURRENT_TIME_SEC;
error = ext3_mark_iloc_dirty(handle, inode, &is.iloc); error = ext3_mark_iloc_dirty(handle, inode, &is.iloc);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment