Thread (1 message) 1 message, 1 author, 2016-10-29

[PATCH 18/60] mm: page_io.c: comment on direct access to bvec table

STALE3575d

From: Ming Lei <tom.leiming@gmail.com>
Date: 2016-10-29 08:08:17
Also in: linux-fsdevel, linux-mm, lkml
Subsystem: memory management, memory management - swap, the rest · Maintainers: Andrew Morton, Chris Li, Kairui Song, Linus Torvalds

Revision v1 of 2 in this series.

Revisions (2)
  1. v1 current
  2. v1 [diff vs current]
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 mm/page_io.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/mm/page_io.c b/mm/page_io.c
index a2651f58c86a..b0c0069ec1f4 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -43,6 +43,7 @@ static struct bio *get_swap_bio(gfp_t gfp_flags,
 
 void end_swap_bio_write(struct bio *bio)
 {
+	/* single page bio, safe for multipage bvec */
 	struct page *page = bio->bi_io_vec[0].bv_page;
 
 	if (bio->bi_error) {
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help