Skip to content
Commit ce62003f authored by Liu Bo's avatar Liu Bo Committed by Chris Mason
Browse files

Btrfs: fix compressed write corruption on enospc



When failing to allocate space for the whole compressed extent, we'll
fallback to uncompressed IO, but we've forgotten to redirty the pages
which belong to this compressed extent, and these 'clean' pages will
simply skip 'submit' part and go to endio directly, at last we got data
corruption as we write nothing.

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Tested-By: default avatarMartin Steigerwald <martin@lichtvoll.de>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent f90e579c
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