]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypto: don't let data integrity writebacks fail with ENOMEM
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Apr 2016 22:51:57 +0000 (15:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Apr 2016 17:25:30 +0000 (10:25 -0700)
commitb32e4482aadfd1322357f46d4ed8a990603664d9
tree95c30af47e2b41c4eb2a870bd6e8ff010abb8d1b
parent33b1395124c63ed4a42e33c1dd14859f9b3f29c2
fscrypto: don't let data integrity writebacks fail with ENOMEM

This patch fixes the issue introduced by the ext4 crypto fix in a same manner.
For F2FS, however, we flush the pending IOs and wait for a while to acquire free
memory.

Fixes: c9af28fdd4492 ("ext4 crypto: don't let data integrity writebacks fail with ENOMEM")
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/crypto/crypto.c
fs/f2fs/data.c
include/linux/fscrypto.h