diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-01-25 04:41:18 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-25 04:41:18 -0800 |
commit | dd78b6a45eb54e391c56893092f26a4670559dde (patch) | |
tree | 70902f17dd688f3ca3b6669a8d8dd35eb4a1e19b /fs/ext3/xattr.c | |
parent | 9d0792a7a8c73c40b9889fc45da573fab175059d (diff) | |
download | history-dd78b6a45eb54e391c56893092f26a4670559dde.tar.gz |
[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: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r-- | fs/ext3/xattr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index 37ebb84bd30117..de38ff7645f662 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c @@ -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); } /* |