shithub: lwext4

Download patch

ref: 1366373d0c66281935e9e0fc71f52f5919a3a085
parent: 02cad7eee3a935c99dfd5163accb214af503a32a
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Fri Dec 25 11:38:27 EST 2015

ext4: remove unnecessary EXT4_MP_UNLOCK in ext4_fsymlink_set.

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -1860,10 +1860,8 @@
 		return EOK;
 
 	r = ext4_fs_get_inode_ref(&f->mp->fs, f->inode, &ref);
-	if (r != EOK) {
-		EXT4_MP_UNLOCK(f->mp);
+	if (r != EOK)
 		return r;
-	}
 
 	/*Sync file size*/
 	block_size = ext4_sb_get_block_size(&f->mp->fs.sb);