summaryrefslogtreecommitdiff
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-05-13 17:21:04 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 09:47:49 -0700
commitcfcbfb1382dbac331d8aa92d3a218a16b803b2a9 (patch)
treeb82c7913d1790f823ed3f6ac5f39118a502571ea /mm/filemap.c
parentc6d23413f81bd69935afedaf1da9d55b03febf58 (diff)
mm/filemap.c: enable error injection at add_to_page_cache()
Recently I messed up the error handling in filemap_fault() because of an unexpected ENOMEM (related to cgroup memory limits) in add_to_page_cache. Enable error injection at this point so I can add a testcase to xfstests to verify I don't mess this up again. [akpm@linux-foundation.org: include linux/error-injection.h] Link: http://lkml.kernel.org/r/20190403152604.14008-1-josef@toxicpanda.com Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: William Kucharski <william.kucharski@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 4157f858a9c6..0e929b4da48b 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 @@ error:
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
'libreoffice-7-3-5'>libreoffice-7-3-5 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-10-07 12:02:05 +0200
committerAndras Timar <andras.timar@collabora.com>2020-10-08 11:05:37 +0200
commit345acbaa2c32cd3100529f2cc125800054bf869b (patch)
treea8ac437c8cc3cef6b4f33dc8ea825e229d8f7aa0
parent1f5c353bc78312bdc964271a8d5f3b988607a117 (diff)
update translations for 6.4.7 rc2cp-6.4-9cp-6.4-8cp-6.4-7
and force-fix errors using pocheck Change-Id: I5b70ce184448b11dc7d76b84e5ad200a2d8f8474
Diffstat