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

ext4 crypto: don't let data integrity writebacks fail with ENOMEM



We don't want the writeback triggered from the journal commit (in
data=writeback mode) to cause the journal to abort due to
generic_writepages() returning an ENOMEM error.  In addition, if
fsync() fails with ENOMEM, most applications will probably not do the
right thing.

So if we are doing a data integrity sync, and ext4_encrypt() returns
ENOMEM, we will submit any queued I/O to date, and then retry the
allocation using GFP_NOFAIL.

Google-Bug-Id: 27641567

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 9e92f48c
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