Konstantin Khlebnikov a92853b674 fs/direct-io.c: keep dio_warn_stale_pagecache() when CONFIG_BLOCK=n
This helper prints warning if direct I/O write failed to invalidate cache,
and set EIO at inode to warn usersapce about possible data corruption.

See also commit 5a9d929d6e13 ("iomap: report collisions between directio
and buffered writes to userspace").

Direct I/O is supported by non-disk filesystems, for example NFS.  Thus
generic code needs this even in kernel without CONFIG_BLOCK.

Link: http://lkml.kernel.org/r/157270038074.4812.7980855544557488880.stgit@buzz
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-12-01 06:29:18 -08:00
..
2019-09-27 15:10:34 -07:00
2019-11-30 10:57:22 -08:00
2019-09-19 09:42:37 -07:00
2019-07-12 17:37:53 -07:00
\n
2019-11-30 11:16:07 -08:00
\n
2019-11-30 11:16:07 -08:00
\n
2019-11-30 11:16:07 -08:00
2019-11-30 10:44:49 -08:00
2019-09-19 09:42:37 -07:00
2019-09-19 09:42:37 -07:00
2019-07-03 17:52:09 -04:00
2019-09-27 17:00:27 -07:00
2019-09-19 10:21:35 -07:00
2019-08-30 08:11:25 -07:00
2019-09-19 09:42:37 -07:00
2019-11-30 10:44:49 -08:00
2019-11-30 10:44:49 -08:00
2019-11-20 09:40:08 +01:00
2019-08-07 21:51:47 -04:00
2019-11-26 15:02:56 -07:00
2019-11-26 15:02:56 -07:00
2019-10-14 15:04:01 -07:00
2019-09-27 17:00:27 -07:00
2019-08-01 20:51:23 +02:00
2019-09-25 17:51:41 -07:00