Skip to content

Commit 2be7d71

Browse files
Zhang Qilongtytso
authored andcommitted
ext4: add trace exit in exception path.
Missing trace exit in exception path of ext4_sync_file and ext4_ind_map_blocks. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20200921124738.23352-1-zhangqilong3@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 9faac62 commit 2be7d71

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎fs/ext4/fsync.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
150150

151151
ret = file_write_and_wait_range(file, start, end);
152152
if (ret)
153-
return ret;
153+
goto out;
154154

155155
/*
156156
* data=writeback,ordered:

‎fs/ext4/indirect.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ int ext4_ind_map_blocks(handle_t *handle, struct inode *inode,
593593
if (ext4_has_feature_bigalloc(inode->i_sb)) {
594594
EXT4_ERROR_INODE(inode, "Can't allocate blocks for "
595595
"non-extent mapped inodes with bigalloc");
596-
return -EFSCORRUPTED;
596+
err = -EFSCORRUPTED;
597+
goto out;
597598
}
598599

599600
/* Set up for the direct block allocation */

0 commit comments

Comments
 (0)