File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1291,6 +1291,7 @@ void put_pages_list(struct list_head *pages);
1291
1291
1292
1292
void split_page (struct page * page , unsigned int order );
1293
1293
void folio_copy (struct folio * dst , struct folio * src );
1294
+ int folio_mc_copy (struct folio * dst , struct folio * src );
1294
1295
1295
1296
unsigned long nr_free_buffer_pages (void );
1296
1297
Original file line number Diff line number Diff line change @@ -828,6 +828,23 @@ void folio_copy(struct folio *dst, struct folio *src)
828
828
}
829
829
EXPORT_SYMBOL (folio_copy );
830
830
831
+ int folio_mc_copy (struct folio * dst , struct folio * src )
832
+ {
833
+ long nr = folio_nr_pages (src );
834
+ long i = 0 ;
835
+
836
+ for (;;) {
837
+ if (copy_mc_highpage (folio_page (dst , i ), folio_page (src , i )))
838
+ return - EHWPOISON ;
839
+ if (++ i == nr )
840
+ break ;
841
+ cond_resched ();
842
+ }
843
+
844
+ return 0 ;
845
+ }
846
+ EXPORT_SYMBOL (folio_mc_copy );
847
+
831
848
int sysctl_overcommit_memory __read_mostly = OVERCOMMIT_GUESS ;
832
849
int sysctl_overcommit_ratio __read_mostly = 50 ;
833
850
unsigned long sysctl_overcommit_kbytes __read_mostly ;
You can’t perform that action at this time.
0 commit comments