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

[PATCH] ext3/ea: no lock needed when freeing inode

ext3_xattr_delete_inode is called from ext3_free_inode which always has
exclusive access to the inode, so there is no need to take the xattr
semaphore.
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 9d0792a7
......@@ -1066,7 +1066,6 @@ ext3_xattr_delete_inode(handle_t *handle, struct inode *inode)
{
struct buffer_head *bh = NULL;
down_write(&EXT3_I(inode)->xattr_sem);
if (!EXT3_I(inode)->i_file_acl)
goto cleanup;
bh = sb_bread(inode->i_sb, EXT3_I(inode)->i_file_acl);
......@@ -1088,7 +1087,6 @@ ext3_xattr_delete_inode(handle_t *handle, struct inode *inode)
cleanup:
brelse(bh);
up_write(&EXT3_I(inode)->xattr_sem);
}
/*
......
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