summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2020-05-07 20:50:28 +0300
committerTheodore Ts'o <tytso@mit.edu>2020-06-04 06:16:51 +0300
commit73c384c0cdaa8ea9ca9ef2d0cff6a25930f1648e (patch)
treedb5d95382a581d9abbafba3b303b947f30bde502 /fs/ext4/ext4.h
parent08adf452e628b0e2ce9a01048cfbec52353703d7 (diff)
downloadlinux-73c384c0cdaa8ea9ca9ef2d0cff6a25930f1648e.tar.xz
ext4: avoid ext4_error()'s caused by ENOMEM in the truncate path
We can't fail in the truncate path without requiring an fsck. Add work around for this by using a combination of retry loops and the __GFP_NOFAIL flag. From: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Anna Pendleton <pendleton@google.com> Reviewed-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com> Link: https://lore.kernel.org/r/20200507175028.15061-1-pendleton@google.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 884ce3086486..5d901bf92ce9 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -630,6 +630,7 @@ enum {
*/
#define EXT4_EX_NOCACHE 0x40000000
#define EXT4_EX_FORCE_CACHE 0x20000000
+#define EXT4_EX_NOFAIL 0x10000000
/*
* Flags used by ext4_free_blocks