]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix compressed write corruption on enospc
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 24 Jul 2014 14:48:05 +0000 (22:48 +0800)
committerChris Mason <clm@fb.com>
Fri, 15 Aug 2014 14:43:18 +0000 (07:43 -0700)
commit1a2832a9572e2e22fe55e604d459d278b3ed28e0
tree5cf6ced20c580a18e50496ca926bbb256ddb5bc7
parente550ff8e8db50aea534aeda74b6c2b9a161be075
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: Liu Bo <bo.li.liu@oracle.com>
Tested-By: Martin Steigerwald <martin@lichtvoll.de>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c