[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251129090122.2457896-7-zhangshida@kylinos.cn>
Date: Sat, 29 Nov 2025 17:01:19 +0800
From: zhangshida <starzhangzsd@...il.com>
To: Johannes.Thumshirn@....com,
hch@...radead.org,
agruenba@...hat.com,
ming.lei@...hat.com,
hsiangkao@...ux.alibaba.com,
csander@...estorage.com
Cc: linux-block@...r.kernel.org,
linux-bcache@...r.kernel.org,
nvdimm@...ts.linux.dev,
virtualization@...ts.linux.dev,
ntfs3@...ts.linux.dev,
linux-xfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhangshida@...inos.cn,
starzhangzsd@...il.com
Subject: [PATCH v3 6/9] block: Replace the repetitive bio chaining code patterns
From: Shida Zhang <zhangshida@...inos.cn>
Replace duplicate bio chaining logic with the common
bio_chain_and_submit helper function.
Signed-off-by: Shida Zhang <zhangshida@...inos.cn>
---
fs/squashfs/block.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c
index a05e3793f93..5818e473255 100644
--- a/fs/squashfs/block.c
+++ b/fs/squashfs/block.c
@@ -126,8 +126,7 @@ static int squashfs_bio_read_cached(struct bio *fullbio,
if (bio) {
bio_trim(bio, start_idx * PAGE_SECTORS,
(end_idx - start_idx) * PAGE_SECTORS);
- bio_chain(bio, new);
- submit_bio(bio);
+ bio_chain_and_submit(bio, new);
}
bio = new;
--
2.34.1
Powered by blists - more mailing lists