在 2025/08/15 3:10, Rajeev Mishra 写道:
- Use vfs_getattr_nosec() instead of i_size_read() in lo_calculate_size. - Improves accuracy for network/distributed filesystems. Signed-off-by: Rajeev Mishra<rajeevm@xxxxxxx> --- drivers/block/loop.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
LGTM Reviewed-by: Yu Kuai <yukuai3@xxxxxxxxxx>