diff --git a/mm/filemap.c b/mm/filemap.c index 4157f858a9c68..0e929b4da48bc 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -882,6 +883,7 @@ static int __add_to_page_cache_locked(struct page *page, put_page(page); return xas_error(&xas); } +ALLOW_ERROR_INJECTION(__add_to_page_cache_locked, ERRNO); /** * add_to_page_cache_locked - add a locked page to the pagecache