mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
filemap: remove page_endio()
page_endio() is not used anymore. Remove it. Link: https://lkml.kernel.org/r/20230510124716.73655-1-p.raghav@samsung.com Signed-off-by: Pankaj Raghav <p.raghav@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
cd00dd2585
commit
c963901197
@ -1078,8 +1078,6 @@ int filemap_migrate_folio(struct address_space *mapping, struct folio *dst,
|
||||
#else
|
||||
#define filemap_migrate_folio NULL
|
||||
#endif
|
||||
void page_endio(struct page *page, bool is_write, int err);
|
||||
|
||||
void folio_end_private_2(struct folio *folio);
|
||||
void folio_wait_private_2(struct folio *folio);
|
||||
int folio_wait_private_2_killable(struct folio *folio);
|
||||
|
30
mm/filemap.c
30
mm/filemap.c
@ -1628,36 +1628,6 @@ void folio_end_writeback(struct folio *folio)
|
||||
}
|
||||
EXPORT_SYMBOL(folio_end_writeback);
|
||||
|
||||
/*
|
||||
* After completing I/O on a page, call this routine to update the page
|
||||
* flags appropriately
|
||||
*/
|
||||
void page_endio(struct page *page, bool is_write, int err)
|
||||
{
|
||||
struct folio *folio = page_folio(page);
|
||||
|
||||
if (!is_write) {
|
||||
if (!err) {
|
||||
folio_mark_uptodate(folio);
|
||||
} else {
|
||||
folio_clear_uptodate(folio);
|
||||
folio_set_error(folio);
|
||||
}
|
||||
folio_unlock(folio);
|
||||
} else {
|
||||
if (err) {
|
||||
struct address_space *mapping;
|
||||
|
||||
folio_set_error(folio);
|
||||
mapping = folio_mapping(folio);
|
||||
if (mapping)
|
||||
mapping_set_error(mapping, err);
|
||||
}
|
||||
folio_end_writeback(folio);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(page_endio);
|
||||
|
||||
/**
|
||||
* __folio_lock - Get a lock on the folio, assuming we need to sleep to get it.
|
||||
* @folio: The folio to lock
|
||||
|
Loading…
Reference in New Issue
Block a user