commit | a92853b6746fe5ffef20a7c30addf6320561e669 | [log] [tgz] |
---|---|---|
author | Konstantin Khlebnikov <[email protected]> | Sat Nov 30 17:49:44 2019 -0800 |
committer | Linus Torvalds <[email protected]> | Sun Dec 01 06:29:18 2019 -0800 |
tree | 42fad039d35b3de85db3abd12458e1cc7cf18c35 | |
parent | 80c1fe902691d3ef4786f9e62e47a0aa0deb8b54 [diff] |
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 <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Reviewed-by: Jan Kara <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>