Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/direct-io: Remove linux/prefetch.h include

After commit c22198e78d52 ("direct-io: remove random prefetches"), Nothing
in this file needs anything from `linux/prefetch.h`.

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Link: https://lore.kernel.org/r/20240603014834.45294-1-youling.tang@linux.dev
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Youling Tang and committed by
Christian Brauner
160210ce c393eaa8

-6
-6
fs/direct-io.c
··· 37 37 #include <linux/rwsem.h> 38 38 #include <linux/uio.h> 39 39 #include <linux/atomic.h> 40 - #include <linux/prefetch.h> 41 40 42 41 #include "internal.h" 43 42 ··· 1119 1120 struct buffer_head map_bh = { 0, }; 1120 1121 struct blk_plug plug; 1121 1122 unsigned long align = offset | iov_iter_alignment(iter); 1122 - 1123 - /* 1124 - * Avoid references to bdev if not absolutely needed to give 1125 - * the early prefetch in the caller enough time. 1126 - */ 1127 1123 1128 1124 /* watch out for a 0 len io from a tricksy fs */ 1129 1125 if (iov_iter_rw(iter) == READ && !count)