mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
ext4: trace punch_hole correctly in ext4_ext_map_blocks
When ext4_ext_map_blocks() is called by punch_hole, trace should trace blocks punched out. Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
02dc62fba8
commit
e7b319e397
1 changed files with 3 additions and 3 deletions
|
@ -4171,12 +4171,12 @@ out2:
|
||||||
ext4_ext_drop_refs(path);
|
ext4_ext_drop_refs(path);
|
||||||
kfree(path);
|
kfree(path);
|
||||||
}
|
}
|
||||||
trace_ext4_ext_map_blocks_exit(inode, map->m_lblk,
|
|
||||||
newblock, map->m_len, err ? err : allocated);
|
|
||||||
|
|
||||||
result = (flags & EXT4_GET_BLOCKS_PUNCH_OUT_EXT) ?
|
result = (flags & EXT4_GET_BLOCKS_PUNCH_OUT_EXT) ?
|
||||||
punched_out : allocated;
|
punched_out : allocated;
|
||||||
|
|
||||||
|
trace_ext4_ext_map_blocks_exit(inode, map->m_lblk,
|
||||||
|
newblock, map->m_len, err ? err : result);
|
||||||
|
|
||||||
return err ? err : result;
|
return err ? err : result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue