aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-09-13 17:04:54 +0200
committerTheodore Ts'o <tytso@mit.edu>2023-09-14 12:06:47 -0400
commit45e4ab320c9b5fa67b1fc3b6a9b381cfcc0c8488 (patch)
tree808f0e18de62a0aba23ddbe6cb3c85ba31bd704a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parent1bb0763f1eb7dd015989fdc77dea17a349df2ea9 (diff)
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: stable@kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230913150504.9054-1-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions