[PATCH 3/3] loop: drop the unused argument of lo_req_flush()

From: Tao Cui

Date: Tue Aug 25 2026 - 08:58:38 EST


From: Tao Cui <cuitao@xxxxxxxxxx>

lo_req_flush() never uses its request argument. Drop it.

Signed-off-by: Tao Cui <cuitao@xxxxxxxxxx>
---
drivers/block/loop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 8ba146e76a59..e7d16e5961c0 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -270,7 +270,7 @@ static int lo_fallocate(struct loop_device *lo, struct request *rq, loff_t pos,
return ret;
}

-static int lo_req_flush(struct loop_device *lo, struct request *rq)
+static int lo_req_flush(struct loop_device *lo)
{
int ret = vfs_fsync(lo->lo_backing_file, 0);
if (unlikely(ret && ret != -EINVAL))
@@ -411,7 +411,7 @@ static int do_req_filebacked(struct loop_device *lo, struct request *rq)

switch (req_op(rq)) {
case REQ_OP_FLUSH:
- return lo_req_flush(lo, rq);
+ return lo_req_flush(lo);
case REQ_OP_WRITE_ZEROES:
/*
* If the caller doesn't want deallocation, call zeroout to
--
2.43.0