aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c
diff options
context:
space:
mode:
authorRajeev Mishra <[email protected]>2025-08-18 18:48:21 +0000
committerJens Axboe <[email protected]>2025-08-18 19:10:35 +0000
commit47b71abd58461a67cae71d2f2a9d44379e4e2fcf (patch)
treeaeb6c4c30fecf14adda0ba23a4061feb503966a2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c
parentloop: Consolidate size calculation logic into lo_calculate_size() (diff)
downloadkernel-47b71abd58461a67cae71d2f2a9d44379e4e2fcf.tar.gz
kernel-47b71abd58461a67cae71d2f2a9d44379e4e2fcf.zip
loop: use vfs_getattr_nosec for accurate file size
Use vfs_getattr_nosec() in lo_calculate_size() for getting the file size, rather than just read the cached inode size via i_size_read(). This provides better results than cached inode data, particularly for network filesystems where metadata may be stale. Signed-off-by: Rajeev Mishra <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: massage commit message] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c')
0 files changed, 0 insertions, 0 deletions