mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rajeev Mishra <rajeevm@hpe.com>
To: axboe@kernel.dk, yukuai1@huaweicloud.com
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	Rajeev Mishra <rajeevm@hpe.com>
Subject: [PATCH v4 0/2] review of v3 loop: use vfs_getattr_nosec()
Date: Wed, 13 Aug 2025 19:52:25 +0000	[thread overview]
Message-ID: <20250813195228.12021-1-rajeevm@hpe.com> (raw)

> 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(-)

-- 
2.43.7


             reply	other threads:[~2025-08-13 19:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-13 19:52 Rajeev Mishra [this message]
2025-08-13 19:52 ` [PATCH v4 1/2] loop: Rename and merge get_size/get_loop_size to lo_calculate_size Rajeev Mishra
2025-08-14  6:38   ` Yu Kuai
2025-08-13 19:52 ` [PATCH v4 2/2] loop: use vfs_getattr_nosec for accurate file size Rajeev Mishra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250813195228.12021-1-rajeevm@hpe.com \
    --to=rajeevm@hpe.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yukuai1@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®