ext4: clear BH_Uptodate flag on decryption error
authorChandan Rajendra <chandan@linux.ibm.com>
Mon, 20 May 2019 16:29:49 +0000 (09:29 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 28 May 2019 17:27:53 +0000 (10:27 -0700)
commit7e0785fce14f75976a80b241d732e210e380923e
tree130615e4d12af19cadf76844ba4a1dcc3ec97827
parentffceeefb337b3ba9da36633072490caa96289345
ext4: clear BH_Uptodate flag on decryption error

If decryption fails, ext4_block_write_begin() can return with the page's
buffer_head marked with the BH_Uptodate flag.  This commit clears the
BH_Uptodate flag in such cases.

Signed-off-by: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/ext4/inode.c