]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: mark mapping with error flag to report errors to userspace
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 12 May 2014 04:47:36 +0000 (12:47 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:47 +0000 (17:20 -0700)
commit2b421d6579c94bc39ea5a240cd3af8668c24305b
treeb170e4ffb449b3cb876efcb1ebbe957c5fc71c8b
parentffb3d2ba1d67794fb6f62ffad422131d64053f29
Btrfs: mark mapping with error flag to report errors to userspace

According to commit 4528a5d7faa06caf7bf27a3332cdcbaf62f045ca
(fs: fix fsync() error reporting),
it's not stable to just check error pages because pages can be
truncated or invalidated, we should also mark mapping with error
flag so that a later fsync can catch the error.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.c