]> 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)
commitc4b04f6ad6750fd1f7e5dc5d3537ef560e0961c3
treeb170e4ffb449b3cb876efcb1ebbe957c5fc71c8b
parent21d2d880cb845caf2283f3bdaf74cf203bfe0618
Btrfs: mark mapping with error flag to report errors to userspace

According to commit e1cfa6c463b6b404f5a33fee7e2d9d3d0dab45a1
(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