summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2014-07-24 22:48:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-05 16:34:16 -0700
commitbd7c57d3ca1a55a601c9f9e2d3b0fe8be197ea8e (patch)
treeb47030ea6eedce64075e4a905a28e417dede206c /fs/jbd2/commit.c
parent8a6de3b6c9dd8b1fb52b40e4aa4d6c8bd9ce0a26 (diff)
Btrfs: fix compressed write corruption on enospc
commit ce62003f690dff38d3164a632ec69efa15c32cbf upstream. 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: Liu Bo <bo.li.liu@oracle.com> Tested-By: Martin Steigerwald <martin@lichtvoll.de> Signed-off-by: Chris Mason <clm@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions