Skip to content

Commit

Permalink
fs/direct-io: Remove linux/prefetch.h include
Browse files Browse the repository at this point in the history
After commit c22198e ("direct-io: remove random prefetches"), Nothing
in this file needs anything from `linux/prefetch.h`.

Signed-off-by: Youling Tang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
  • Loading branch information
Youling Tang authored and brauner committed Aug 19, 2024
1 parent c393eaa commit 160210c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fs/direct-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include <linux/rwsem.h>
#include <linux/uio.h>
#include <linux/atomic.h>
#include <linux/prefetch.h>

#include "internal.h"

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 160210c

Please sign in to comment.