Skip to content
Commit 73c384c0 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarAnna Pendleton <pendleton@google.com>
Reviewed-by: default avatarHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20200507175028.15061-1-pendleton@google.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 08adf452
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment