File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5026,7 +5026,7 @@ static int ext4_do_update_inode(handle_t *handle,
5026
5026
struct ext4_inode_info * ei = EXT4_I (inode );
5027
5027
struct buffer_head * bh = iloc -> bh ;
5028
5028
struct super_block * sb = inode -> i_sb ;
5029
- int err = 0 , rc , block ;
5029
+ int err = 0 , block ;
5030
5030
int need_datasync = 0 , set_large_file = 0 ;
5031
5031
uid_t i_uid ;
5032
5032
gid_t i_gid ;
@@ -5138,9 +5138,9 @@ static int ext4_do_update_inode(handle_t *handle,
5138
5138
bh -> b_data );
5139
5139
5140
5140
BUFFER_TRACE (bh , "call ext4_handle_dirty_metadata" );
5141
- rc = ext4_handle_dirty_metadata (handle , NULL , bh );
5142
- if (! err )
5143
- err = rc ;
5141
+ err = ext4_handle_dirty_metadata (handle , NULL , bh );
5142
+ if (err )
5143
+ goto out_brelse ;
5144
5144
ext4_clear_inode_state (inode , EXT4_STATE_NEW );
5145
5145
if (set_large_file ) {
5146
5146
BUFFER_TRACE (EXT4_SB (sb )-> s_sbh , "get write access" );
You can’t perform that action at this time.
0 commit comments