projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c393eaa
)
fs/direct-io: Remove linux/prefetch.h include
author
Youling Tang
<tangyouling@kylinos.cn>
Mon, 3 Jun 2024 01:48:34 +0000
(09:48 +0800)
committer
Christian Brauner
<brauner@kernel.org>
Mon, 19 Aug 2024 11:45:02 +0000
(13:45 +0200)
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>
fs/direct-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/direct-io.c
b/fs/direct-io.c
index b0aafe640fa4286d3f2fb64a56578b8c4d53a8b1..bbd05f1a21453b931f9e6f7547abbc3b577ff9f9 100644
(file)
--- a/
fs/direct-io.c
+++ b/
fs/direct-io.c
@@
-37,7
+37,6
@@
#include <linux/rwsem.h>
#include <linux/uio.h>
#include <linux/atomic.h>
-#include <linux/prefetch.h>
#include "internal.h"
@@
-1121,11
+1120,6
@@
ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
struct blk_plug plug;
unsigned long align = offset | iov_iter_alignment(iter);
- /*
- * Avoid references to bdev if not absolutely needed to give
- * the early prefetch in the caller enough time.
- */
-
/* watch out for a 0 len io from a tricksy fs */
if (iov_iter_rw(iter) == READ && !count)
return 0;