aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
diff options
context:
space:
mode:
authorZhang Yi <[email protected]>2024-03-20 11:05:45 +0000
committerChristian Brauner <[email protected]>2024-04-25 12:23:54 +0000
commit943bc0882cebf482422640924062a7daac5a27ba (patch)
tree73212f0647e76b73f0a0525d011bee2513134bcc /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
parentiomap: drop the write failure handles when unsharing and zeroing (diff)
downloadkernel-943bc0882cebf482422640924062a7daac5a27ba.tar.gz
kernel-943bc0882cebf482422640924062a7daac5a27ba.zip
iomap: don't increase i_size if it's not a write operation
Increase i_size in iomap_zero_range() and iomap_unshare_iter() is not needed, the caller should handle it. Especially, when truncate partial block, we should not increase i_size beyond the new EOF here. It doesn't affect xfs and gfs2 now because they set the new file size after zero out, it doesn't matter that a transient increase in i_size, but it will affect ext4 because it set file size before truncate. So move the i_size updating logic to iomap_write_iter(). Signed-off-by: Zhang Yi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c')
0 files changed, 0 insertions, 0 deletions