This is a note to let you know that I've just added the patch titled Btrfs: mark mapping with error flag to report errors to userspace to the 3.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: btrfs-mark-mapping-with-error-flag-to-report-errors-to-userspace.patch and it can be found in the queue-3.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5dca6eea91653e9949ce6eb9e9acab6277e2f2c4 Mon Sep 17 00:00:00 2001 From: Liu Bo <bo.li.liu@xxxxxxxxxx> Date: Mon, 12 May 2014 12:47:36 +0800 Subject: Btrfs: mark mapping with error flag to report errors to userspace From: Liu Bo <bo.li.liu@xxxxxxxxxx> 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@xxxxxxxxxx> Signed-off-by: Chris Mason <clm@xxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/btrfs/extent_io.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2371,6 +2371,8 @@ int end_extent_writepage(struct page *pa if (!uptodate) { ClearPageUptodate(page); SetPageError(page); + ret = ret < 0 ? ret : -EIO; + mapping_set_error(page->mapping, ret); } return 0; } Patches currently in stable-queue which might be from bo.li.liu@xxxxxxxxxx are queue-3.10/btrfs-fix-scrub_print_warning-to-handle-skinny-metadata-extents.patch queue-3.10/btrfs-use-right-type-to-get-real-comparison.patch queue-3.10/btrfs-mark-mapping-with-error-flag-to-report-errors-to-userspace.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html