]> git.itanic.dy.fi Git - linux-stable/commit
ext4: avoid ext4_error()'s caused by ENOMEM in the truncate path
authorTheodore Ts'o <tytso@mit.edu>
Thu, 7 May 2020 17:50:28 +0000 (10:50 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Jun 2020 03:16:51 +0000 (23:16 -0400)
commit73c384c0cdaa8ea9ca9ef2d0cff6a25930f1648e
treedb5d95382a581d9abbafba3b303b947f30bde502
parent08adf452e628b0e2ce9a01048cfbec52353703d7
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>
fs/ext4/ext4.h
fs/ext4/extents.c