diff options
| author | Jan Kara <[email protected]> | 2023-09-13 15:04:54 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-09-14 16:06:47 +0000 |
| commit | 45e4ab320c9b5fa67b1fc3b6a9b381cfcc0c8488 (patch) | |
| tree | 808f0e18de62a0aba23ddbe6cb3c85ba31bd704a /drivers/cdx/controller/cdx_controller.c | |
| parent | jbd2: Fix memory leak in journal_init_common() (diff) | |
| download | kernel-45e4ab320c9b5fa67b1fc3b6a9b381cfcc0c8488.tar.gz kernel-45e4ab320c9b5fa67b1fc3b6a9b381cfcc0c8488.zip | |
ext4: move setting of trimmed bit into ext4_try_to_trim_range()
Currently we set the group's trimmed bit in ext4_trim_all_free() based
on return value of ext4_try_to_trim_range(). However when we will want
to abort trimming because of suspend attempt, we want to return success
from ext4_try_to_trim_range() but not set the trimmed bit. Instead
implementing awkward propagation of this information, just move setting
of trimmed bit into ext4_try_to_trim_range() when the whole group is
trimmed.
Cc: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
