diff --git a/mm/filemap.c b/mm/filemap.c index 4157f858a9c685c922a7d6ddac46b9dd754ab91b..0e929b4da48bc49549cad610ca37eaa68af7cccd 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -24,6 +24,7 @@ #include <linux/pagemap.h> #include <linux/file.h> #include <linux/uio.h> +#include <linux/error-injection.h> #include <linux/hash.h> #include <linux/writeback.h> #include <linux/backing-dev.h> @@ -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