diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-12-06 20:36:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:32 -0800 |
commit | ed2908f31398049c4371de9b100700e80704e95f (patch) | |
tree | eac7806d85893ef62091cacc15a8a08c98045662 /fs/ext2/xattr.c | |
parent | 696040670a12f66b17a839011f96d9ca376f688b (diff) | |
download | kernel_samsung_aries-ed2908f31398049c4371de9b100700e80704e95f.zip kernel_samsung_aries-ed2908f31398049c4371de9b100700e80704e95f.tar.gz kernel_samsung_aries-ed2908f31398049c4371de9b100700e80704e95f.tar.bz2 |
[PATCH] Remove superfluous lock_super() in extN xattr code
lock_super() is unnecessary for setting super-block feature flags. Use the
provided *_SET_COMPAT_FEATURE() macros as well.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext2/xattr.c')
-rw-r--r-- | fs/ext2/xattr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index af52a7f..247efd0 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -342,12 +342,9 @@ static void ext2_xattr_update_super_block(struct super_block *sb) if (EXT2_HAS_COMPAT_FEATURE(sb, EXT2_FEATURE_COMPAT_EXT_ATTR)) return; - lock_super(sb); - EXT2_SB(sb)->s_es->s_feature_compat |= - cpu_to_le32(EXT2_FEATURE_COMPAT_EXT_ATTR); + EXT2_SET_COMPAT_FEATURE(sb, EXT2_FEATURE_COMPAT_EXT_ATTR); sb->s_dirt = 1; mark_buffer_dirty(EXT2_SB(sb)->s_sbh); - unlock_super(sb); } /* |