diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-07-02 12:35:52 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-09-16 12:06:24 +0200 |
commit | b72b13eb203835a8a07c280939dd17584c6a688e (patch) | |
tree | 1954213516474e0bf2735528114a01dd439c51b7 /fs/ceph | |
parent | 131d7eb4faa1fc06b08b633aff0b59ae85f1938e (diff) | |
download | linux-b72b13eb203835a8a07c280939dd17584c6a688e.tar.gz linux-b72b13eb203835a8a07c280939dd17584c6a688e.tar.bz2 linux-b72b13eb203835a8a07c280939dd17584c6a688e.zip |
ceph: don't SetPageError on writepage errors
We already mark the mapping in that case, and doing this can cause
false positives to occur at fsync time, as well as spurious read
errors.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/addr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 62602283557f..90e8f8487aaf 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -573,7 +573,7 @@ static u64 get_writepages_data_length(struct inode *inode, /* * Write a single page, but leave the page locked. * - * If we get a write error, set the page error bit, but still adjust the + * If we get a write error, mark the mapping for error, but still adjust the * dirty page accounting (i.e., page is no longer dirty). */ static int writepage_nounlock(struct page *page, struct writeback_control *wbc) @@ -648,7 +648,6 @@ static int writepage_nounlock(struct page *page, struct writeback_control *wbc) fsc->blacklisted = true; dout("writepage setting page/mapping error %d %p\n", err, page); - SetPageError(page); mapping_set_error(&inode->i_data, err); wbc->pages_skipped++; } else { |