Commit 74477c85 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds

[PATCH] ReiserFS: Fix several missing reiserfs_write_unlock calls

This patch fixes several missing reiserfs_write_unlock() calls on error
paths not introduced by reiserfs-io-error-handling.diff
Signed-off-by: default avatarJeff Mahoney <jeffm@novell.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6f2fb125
......@@ -341,6 +341,7 @@ static struct dentry * reiserfs_lookup (struct inode * dir, struct dentry * dent
REISERFS_SB(dir->i_sb)->priv_root &&
REISERFS_SB(dir->i_sb)->priv_root->d_inode &&
de.de_objectid == le32_to_cpu (INODE_PKEY(REISERFS_SB(dir->i_sb)->priv_root->d_inode)->k_objectid)) {
reiserfs_write_unlock (dir->i_sb);
return ERR_PTR (-EACCES);
}
......@@ -1091,6 +1092,7 @@ static int reiserfs_link (struct dentry * old_dentry, struct inode * dir, struct
return -EMLINK;
}
if (inode->i_nlink == 0) {
reiserfs_write_unlock(dir->i_sb);
return -ENOENT;
}
......
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