* [PATCH] Bio: Fixed the code indentation by using tabs
@ 2021-03-13 16:36 Chinmayi Shetty
0 siblings, 0 replies; 2+ messages in thread
From: Chinmayi Shetty @ 2021-03-13 16:36 UTC (permalink / raw)
To: linux-kernel
Fixed coding style issue
Signed-off-by: Chinmayi Shetty <chinmayishetty359@gmail.com>
---
block/bio.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/block/bio.c b/block/bio.c
index a1c4d2900c7a..7c1354f7065c 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -501,6 +501,7 @@ void zero_fill_bio_iter(struct bio *bio, struct bvec_iter start)
__bio_for_each_segment(bv, bio, iter, start) {
char *data = bvec_kmap_irq(&bv, &flags);
+
memset(data, 0, bv.bv_len);
flush_dcache_page(bv.bv_page);
bvec_kunmap_irq(data, &flags);
@@ -616,15 +617,15 @@ void bio_put(struct bio *bio)
EXPORT_SYMBOL(bio_put);
/**
- * __bio_clone_fast - clone a bio that shares the original bio's biovec
- * @bio: destination bio
- * @bio_src: bio to clone
+ * __bio_clone_fast - clone a bio that shares the original bio's biovec
+ * @bio: destination bio
+ * @bio_src: bio to clone
*
* Clone a &bio. Caller will own the returned bio, but not
* the actual data it points to. Reference count of returned
- * bio will be one.
+ * bio will be one.
*
- * Caller must ensure that @bio_src is not freed before @bio.
+ * Caller must ensure that @bio_src is not freed before @bio.
*/
void __bio_clone_fast(struct bio *bio, struct bio *bio_src)
{
@@ -657,7 +658,7 @@ EXPORT_SYMBOL(__bio_clone_fast);
* @gfp_mask: allocation priority
* @bs: bio_set to allocate from
*
- * Like __bio_clone_fast, only also allocates the returned bio
+ * Like __bio_clone_fast, only also allocates the returned bio
*/
struct bio *bio_clone_fast(struct bio *bio, gfp_t gfp_mask, struct bio_set *bs)
{
@@ -1009,7 +1010,7 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
put_page(page);
} else {
if (WARN_ON_ONCE(bio_full(bio, len)))
- return -EINVAL;
+ return -EINVAL;
__bio_add_page(bio, page, len, offset);
}
offset = 0;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] Bio: Fixed the code indentation by using tabs
@ 2021-03-13 16:35 Chinmayi Shetty
0 siblings, 0 replies; 2+ messages in thread
From: Chinmayi Shetty @ 2021-03-13 16:35 UTC (permalink / raw)
To: linux-block
Fixed coding style issue
Signed-off-by: Chinmayi Shetty <chinmayishetty359@gmail.com>
---
block/bio.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/block/bio.c b/block/bio.c
index a1c4d2900c7a..7c1354f7065c 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -501,6 +501,7 @@ void zero_fill_bio_iter(struct bio *bio, struct bvec_iter start)
__bio_for_each_segment(bv, bio, iter, start) {
char *data = bvec_kmap_irq(&bv, &flags);
+
memset(data, 0, bv.bv_len);
flush_dcache_page(bv.bv_page);
bvec_kunmap_irq(data, &flags);
@@ -616,15 +617,15 @@ void bio_put(struct bio *bio)
EXPORT_SYMBOL(bio_put);
/**
- * __bio_clone_fast - clone a bio that shares the original bio's biovec
- * @bio: destination bio
- * @bio_src: bio to clone
+ * __bio_clone_fast - clone a bio that shares the original bio's biovec
+ * @bio: destination bio
+ * @bio_src: bio to clone
*
* Clone a &bio. Caller will own the returned bio, but not
* the actual data it points to. Reference count of returned
- * bio will be one.
+ * bio will be one.
*
- * Caller must ensure that @bio_src is not freed before @bio.
+ * Caller must ensure that @bio_src is not freed before @bio.
*/
void __bio_clone_fast(struct bio *bio, struct bio *bio_src)
{
@@ -657,7 +658,7 @@ EXPORT_SYMBOL(__bio_clone_fast);
* @gfp_mask: allocation priority
* @bs: bio_set to allocate from
*
- * Like __bio_clone_fast, only also allocates the returned bio
+ * Like __bio_clone_fast, only also allocates the returned bio
*/
struct bio *bio_clone_fast(struct bio *bio, gfp_t gfp_mask, struct bio_set *bs)
{
@@ -1009,7 +1010,7 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
put_page(page);
} else {
if (WARN_ON_ONCE(bio_full(bio, len)))
- return -EINVAL;
+ return -EINVAL;
__bio_add_page(bio, page, len, offset);
}
offset = 0;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-13 16:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-13 16:36 [PATCH] Bio: Fixed the code indentation by using tabs Chinmayi Shetty
-- strict thread matches above, loose matches on Subject: below --
2021-03-13 16:35 Chinmayi Shetty
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.