Revert "ext4: update orig_path in ext4_find_extent()"

This reverts commit 39b44a0c92.
This commit is contained in:
Ksawlii 2024-11-24 00:23:03 +01:00
parent 3b0ddcb83c
commit 2f34213701
2 changed files with 2 additions and 2 deletions

View file

@ -949,8 +949,6 @@ ext4_find_extent(struct inode *inode, ext4_lblk_t block,
ext4_ext_show_path(inode, path);
if (orig_path)
*orig_path = path;
return path;
err:
@ -3247,6 +3245,7 @@ static int ext4_split_extent_at(handle_t *handle,
}
depth = ext_depth(inode);
ex = path[depth].p_ext;
*ppath = path;
if (EXT4_EXT_MAY_ZEROOUT & split_flag) {
if (split_flag & (EXT4_EXT_DATA_VALID1|EXT4_EXT_DATA_VALID2)) {

View file

@ -36,6 +36,7 @@ get_ext_path(struct inode *inode, ext4_lblk_t lblock,
*ppath = NULL;
return -ENODATA;
}
*ppath = path;
return 0;
}