Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547646 > unrolled thread

[PATCH v1 03/54] kernel/power/swap.c: comment on direct access to bvec table

Started byMing Lei <tom.leiming@gmail.com>
First post2016-12-27 17:10 +0100
Last post2016-12-27 17:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v1 03/54] kernel/power/swap.c: comment on direct access to bvec table Ming Lei <tom.leiming@gmail.com> - 2016-12-27 17:10 +0100

#1547646 — [PATCH v1 03/54] kernel/power/swap.c: comment on direct access to bvec table

FromMing Lei <tom.leiming@gmail.com>
Date2016-12-27 17:10 +0100
Subject[PATCH v1 03/54] kernel/power/swap.c: comment on direct access to bvec table
Message-ID<sT2u7-4eA-69@gated-at.bofh.it>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 kernel/power/swap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 32e0c232efba..031e709c9fc4 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -238,6 +238,8 @@ static void hib_init_batch(struct hib_bio_batch *hb)
 static void hib_end_io(struct bio *bio)
 {
 	struct hib_bio_batch *hb = bio->bi_private;
+
+	/* single page bio, safe for multipage bvec */
 	struct page *page = bio->bi_io_vec[0].bv_page;
 
 	if (bio->bi_error) {
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web