diff options
author | Zhang Yi <[email protected]> | 2024-05-17 20:40:04 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2024-06-27 18:04:50 -0400 |
commit | 1850d76c1b781ad9c7dc3c4968fb40c1915231c0 (patch) | |
tree | f7e899579af0a49461c7efaf877c7bf5070e3c0f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 49bf6ab4d30b7a39d86a585e0a58f6c449d2e009 (diff) |
ext4: make ext4_insert_delayed_block() insert multi-blocks
Rename ext4_insert_delayed_block() to ext4_insert_delayed_blocks(),
pass length parameter to make it insert multiple delalloc blocks at a
time. For non-bigalloc case, just reserve len blocks and insert delalloc
extent. For bigalloc case, we can ensure that the clusters in the middle
of a extent must be unallocated, we only need to check whether the start
and end clusters are delayed/allocated. We should subtract the space for
the start and/or end block(s) if they are allocated.
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions