diff options
author | Michal Hocko <mhocko@suse.com> | 2016-10-11 16:56:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-11 18:06:33 -0400 |
commit | 5114a97a8bce7f4ead29a32b67dee85438699b9e (patch) | |
tree | 1033f6f06e9d19d79271a82f09b9d43114953a42 /fs/exofs | |
parent | 97139d4a6f26445de47b378cddd5192c0278f863 (diff) |
fs: use mapping_set_error instead of opencoded set_bit
The mapping_set_error() helper sets the correct AS_ flag for the mapping
so there is no reason to open code it. Use the helper directly.
[akpm@linux-foundation.org: be honest about conversion from -ENXIO to -EIO]
Link: http://lkml.kernel.org/r/20160912111608.2588-2-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/exofs')
-rw-r--r-- | fs/exofs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c index d42ff527ab21..d8072bc074a4 100644 --- a/fs/exofs/inode.c +++ b/fs/exofs/inode.c | |||
@@ -778,7 +778,7 @@ try_again: | |||
778 | fail: | 778 | fail: |
779 | EXOFS_DBGMSG("Error: writepage_strip(0x%lx, 0x%lx)=>%d\n", | 779 | EXOFS_DBGMSG("Error: writepage_strip(0x%lx, 0x%lx)=>%d\n", |
780 | inode->i_ino, page->index, ret); | 780 | inode->i_ino, page->index, ret); |
781 | set_bit(AS_EIO, &page->mapping->flags); | 781 | mapping_set_error(page->mapping, -EIO); |
782 | unlock_page(page); | 782 | unlock_page(page); |
783 | return ret; | 783 | return ret; |
784 | } | 784 | } |