diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-10-03 16:15:25 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-03 17:54:24 -0700 |
commit | f4e222c56c83b2aed7cc2b329fca7435508eefa1 (patch) | |
tree | 0083333f675ad9c42f8af01ef9cf9eab3571b5d7 /mm/swap.c | |
parent | 5bdfca6435b8294490ffb5b7c8b7d8eac3814b06 (diff) | |
download | linux-f4e222c56c83b2aed7cc2b329fca7435508eefa1.tar.gz linux-f4e222c56c83b2aed7cc2b329fca7435508eefa1.tar.bz2 linux-f4e222c56c83b2aed7cc2b329fca7435508eefa1.zip |
mm: have filemap_check_and_advance_wb_err clear AS_EIO/AS_ENOSPC
Eryu noticed that he could sometimes get a leftover error reported when
it shouldn't be on fsync with ext2 and non-journalled ext4.
The problem is that writeback_single_inode still uses filemap_fdatawait.
That picks up a previously set AS_EIO flag, which would ordinarily have
been cleared before.
Since we're mostly using this function as a replacement for
filemap_check_errors, have filemap_check_and_advance_wb_err clear AS_EIO
and AS_ENOSPC when reporting an error. That should allow the new
function to better emulate the behavior of the old with respect to these
flags.
Link: http://lkml.kernel.org/r/20170922133331.28812-1-jlayton@kernel.org
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reported-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions