Contributors: 19
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Matthew Wilcox |
217 |
50.47% |
23 |
35.94% |
Lee Schermerhorn |
58 |
13.49% |
1 |
1.56% |
Nicholas Piggin |
36 |
8.37% |
6 |
9.38% |
Xiao Jiang |
21 |
4.88% |
1 |
1.56% |
Linus Torvalds (pre-git) |
19 |
4.42% |
7 |
10.94% |
Andrew Morton |
17 |
3.95% |
6 |
9.38% |
Christoph Lameter |
16 |
3.72% |
5 |
7.81% |
Souptick Joarder |
10 |
2.33% |
1 |
1.56% |
Thomas Hellstrom |
6 |
1.40% |
1 |
1.56% |
Darrick J. Wong |
5 |
1.16% |
1 |
1.56% |
Hugh Dickins |
4 |
0.93% |
1 |
1.56% |
Christoph Hellwig |
4 |
0.93% |
3 |
4.69% |
Arnaldo Carvalho de Melo |
4 |
0.93% |
1 |
1.56% |
Baolin Wang |
3 |
0.70% |
1 |
1.56% |
Linus Torvalds |
3 |
0.70% |
2 |
3.12% |
Hans Reiser |
3 |
0.70% |
1 |
1.56% |
Yafang Shao |
2 |
0.47% |
1 |
1.56% |
Mel Gorman |
1 |
0.23% |
1 |
1.56% |
Sasha Levin |
1 |
0.23% |
1 |
1.56% |
Total |
430 |
|
64 |
|
/*
* Compatibility functions which bloat the callers too much to make inline.
* All of the callers of these functions should be converted to use folios
* eventually.
*/
#include <linux/migrate.h>
#include <linux/pagemap.h>
#include <linux/rmap.h>
#include <linux/swap.h>
#include "internal.h"
void unlock_page(struct page *page)
{
return folio_unlock(page_folio(page));
}
EXPORT_SYMBOL(unlock_page);
void end_page_writeback(struct page *page)
{
return folio_end_writeback(page_folio(page));
}
EXPORT_SYMBOL(end_page_writeback);
void wait_on_page_writeback(struct page *page)
{
return folio_wait_writeback(page_folio(page));
}
EXPORT_SYMBOL_GPL(wait_on_page_writeback);
void wait_for_stable_page(struct page *page)
{
return folio_wait_stable(page_folio(page));
}
EXPORT_SYMBOL_GPL(wait_for_stable_page);
void mark_page_accessed(struct page *page)
{
folio_mark_accessed(page_folio(page));
}
EXPORT_SYMBOL(mark_page_accessed);
void set_page_writeback(struct page *page)
{
folio_start_writeback(page_folio(page));
}
EXPORT_SYMBOL(set_page_writeback);
bool set_page_dirty(struct page *page)
{
return folio_mark_dirty(page_folio(page));
}
EXPORT_SYMBOL(set_page_dirty);
bool clear_page_dirty_for_io(struct page *page)
{
return folio_clear_dirty_for_io(page_folio(page));
}
EXPORT_SYMBOL(clear_page_dirty_for_io);
bool redirty_page_for_writepage(struct writeback_control *wbc,
struct page *page)
{
return folio_redirty_for_writepage(wbc, page_folio(page));
}
EXPORT_SYMBOL(redirty_page_for_writepage);
int add_to_page_cache_lru(struct page *page, struct address_space *mapping,
pgoff_t index, gfp_t gfp)
{
return filemap_add_folio(mapping, page_folio(page), index, gfp);
}
EXPORT_SYMBOL(add_to_page_cache_lru);
noinline
struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
fgf_t fgp_flags, gfp_t gfp)
{
struct folio *folio;
folio = __filemap_get_folio(mapping, index, fgp_flags, gfp);
if (IS_ERR(folio))
return NULL;
return folio_file_page(folio, index);
}
EXPORT_SYMBOL(pagecache_get_page);
struct page *grab_cache_page_write_begin(struct address_space *mapping,
pgoff_t index)
{
return pagecache_get_page(mapping, index, FGP_WRITEBEGIN,
mapping_gfp_mask(mapping));
}
EXPORT_SYMBOL(grab_cache_page_write_begin);
bool isolate_lru_page(struct page *page)
{
if (WARN_RATELIMIT(PageTail(page), "trying to isolate tail page"))
return false;
return folio_isolate_lru((struct folio *)page);
}
void putback_lru_page(struct page *page)
{
folio_putback_lru(page_folio(page));
}