Skip to content

review of v3 loop: use vfs_getattr_nosec()

Rajeev Mishra linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 1 replyIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2loop: Rename and merge get_size/get_loop_size to lo_calculate_sizedrivers/block/loop.c+21 -291 reply
2/2loop: use vfs_getattr_nosec for accurate file sizedrivers/block/loop.c+13 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] review of v3 loop: use vfs_getattr_nosec()
Quoted 10 lines

This commit includes the following changes:
1. Renamed get_size to lo_calculate_size.
2. Merged the functionality of get_size and get_loop_size into lo_calculate_size.
3 Updated callers of the above functions
to use lo_calculate_size.
4. Replaced i_size_read with vfs_getattr_nosec() to obtain a more accurate file size for network filesystems where cached metadata may be stale

Please split 1-3 to a seperate patch.
removed header also

Rajeev Mishra (2):
loop: Rename and merge get_size/get_loop_size to lo_calculate_size
loop: use vfs_getattr_nosec for accurate file size

 drivers/block/loop.c | 61 +++++++++++++++++++++++---------------------
 1 file changed, 32 insertions(+), 29 deletions(-)
Signature · 1 line
2.43.7