]> git.baikalelectronics.ru Git - kernel.git/commit
fs: use mapping_set_error instead of opencoded set_bit
authorMichal Hocko <mhocko@suse.com>
Tue, 11 Oct 2016 20:56:01 +0000 (13:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:33 +0000 (15:06 -0700)
commit779350cb5adb670c891debde7251d1848e90b587
tree1033f6f06e9d19d79271a82f09b9d43114953a42
parent93b93f55ffa74d1784f6f8a4b0727eced2ed0ac2
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>
drivers/staging/lustre/lustre/llite/vvp_page.c
fs/afs/write.c
fs/buffer.c
fs/exofs/inode.c
fs/ext4/page-io.c
fs/f2fs/data.c
fs/jbd2/commit.c