diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2014-05-12 12:47:36 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-30 20:14:02 -0700 |
commit | 8d7293457e87c2424e90d2f893b6a28e68a2189b (patch) | |
tree | 9cc1b108ec415ba634c11b8aafb546924e74a22e /fs/internal.h | |
parent | c6b4616c411942e2e9bba4671627f7faf0a5db6a (diff) |
Btrfs: mark mapping with error flag to report errors to userspace
commit 5dca6eea91653e9949ce6eb9e9acab6277e2f2c4 upstream.
According to commit 865ffef3797da2cac85b3354b5b6050dc9660978
(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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/internal.h')
0 files changed, 0 insertions, 0 deletions