File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ Usage of helpers:
134
134
bio_for_each_bvec_all()
135
135
bio_first_bvec_all()
136
136
bio_first_page_all()
137
+ bio_first_folio_all()
137
138
bio_last_bvec_all()
138
139
139
140
* The following helpers iterate over single-page segment. The passed 'struct
Original file line number Diff line number Diff line change @@ -253,6 +253,11 @@ static inline struct page *bio_first_page_all(struct bio *bio)
253
253
return bio_first_bvec_all (bio )-> bv_page ;
254
254
}
255
255
256
+ static inline struct folio * bio_first_folio_all (struct bio * bio )
257
+ {
258
+ return page_folio (bio_first_page_all (bio ));
259
+ }
260
+
256
261
static inline struct bio_vec * bio_last_bvec_all (struct bio * bio )
257
262
{
258
263
WARN_ON_ONCE (bio_flagged (bio , BIO_CLONED ));
You can’t perform that action at this time.
0 commit comments