diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:38 -0400 |
commit | d984561b326cd0fe0d1183d11b9b4fa1d011d21d (patch) | |
tree | e0487588581bccaa2b875529ed84ec5a4a254ab9 /fs/reiserfs/inode.c | |
parent | 6c17675e1e02ebde220ef639a3fb1333928ec2f4 (diff) |
reiserfs: eliminate per-super xattr lock
With the switch to using inode->i_mutex locking during lookups/creation
in the xattr root, the per-super xattr lock is no longer needed.
This patch removes it.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index cd42a8658086..50a73e7afdc8 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -1957,19 +1957,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
1957 | inode->i_nlink = 0; | 1957 | inode->i_nlink = 0; |
1958 | th->t_trans_id = 0; /* so the caller can't use this handle later */ | 1958 | th->t_trans_id = 0; /* so the caller can't use this handle later */ |
1959 | unlock_new_inode(inode); /* OK to do even if we hadn't locked it */ | 1959 | unlock_new_inode(inode); /* OK to do even if we hadn't locked it */ |
1960 | 1960 | iput(inode); | |
1961 | /* If we were inheriting an ACL, we need to release the lock so that | ||
1962 | * iput doesn't deadlock in reiserfs_delete_xattrs. The locking | ||
1963 | * code really needs to be reworked, but this will take care of it | ||
1964 | * for now. -jeffm */ | ||
1965 | #ifdef CONFIG_REISERFS_FS_POSIX_ACL | ||
1966 | if (REISERFS_I(dir)->i_acl_default && !IS_ERR(REISERFS_I(dir)->i_acl_default)) { | ||
1967 | reiserfs_write_unlock_xattrs(dir->i_sb); | ||
1968 | iput(inode); | ||
1969 | reiserfs_write_lock_xattrs(dir->i_sb); | ||
1970 | } else | ||
1971 | #endif | ||
1972 | iput(inode); | ||
1973 | return err; | 1961 | return err; |
1974 | } | 1962 | } |
1975 | 1963 | ||