Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp696698lqj; Sun, 2 Jun 2024 18:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXt7HBoF1Dj+5/36p/uNZx3zUghy1ksuZfpZ+w86OpY7g7sHM2by7+qCOUUm3lv0A7XatplyrYjT/RpQpCRiTFI9CGTthfuH5i1UVWIqQ== X-Google-Smtp-Source: AGHT+IHys/piydJ/lqL4NlqEbmr3YHe4h0YVLCucs5xdJADJVxjKNtCCmW/sJ1r9wy2O3CzlDaJI X-Received: by 2002:a17:90b:b03:b0:2bd:b3da:87d0 with SMTP id 98e67ed59e1d1-2c1dc5dd4ccmr6496153a91.41.1717379359714; Sun, 02 Jun 2024 18:49:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717379359; cv=pass; d=google.com; s=arc-20160816; b=YiYnXmuMN1ZUIO0LzODW4ouZlGChau7caMOuM+t4WEpQIzJraM6eLvZUsbkrSaAXaN liRYk5iYfTvkEXyl3I1aHS3N/H63rN75WQV+BS/kvV8DiO4vxttMbTaLZb8m8LnSzK9F rWLcZcmi+mLJMuKa+TH2ZI4tGx1Nf72thfa2owQSWEUl50iTUK6BZlv1051dUkFnifyz eDVed7Yd1efQ4C6ZyTkszRdDvWKFUQ9X3O08h5xCTufvpCSNHfBHfb2DSiKoF5Qi0dNW jVXU+vm4yorbNW8j6LPmipkcgdvnxd368pxXqEC/YTLRzWjxZeFpX46F99Z80E+6ApxP 4cpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=IuEN8PuEp5zAf5cuG+NcBuj/QAlTcY1rhuZq1w0IU2M=; fh=X37fQRM0aITQ2+FbRuxGjA09+hgmg4aSllboPiQZfWg=; b=TSCvYMP12on1+DBd/Gho9P9SQ53ZP0TdincAXVolekAOFQPJy5G2U/QfHk3LD4e3az skejjJZTPymX+ICObdZtSSlSwYxACGdB6sCOQ+wRKpnzdOpTpFHEdmvhzaLPCNjrJtps 74MSBV1olNnJo8oU+DvSSbiO9PN8suj9vIMYQHVE8hVmx2vv1oxoajgtrbHRBftTnm/p e0f5e+15UTqVVBooRlSt2EPEondBTcdqeDTRaJ2NfRhQu4IU8aio3LbDok8OHuugkMra AAaS+nK/vT61OpdqllgQ6rtZnfUVvDKfCSRK5oSPHVzI9zh9PRyoBSfpq2SnqjIQuz+9 IKZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="qpmR0ZX/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-198537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c6481545si5636784a91.87.2024.06.02.18.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 18:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="qpmR0ZX/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-198537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D1555B212A0 for ; Mon, 3 Jun 2024 01:49:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 730E64C63; Mon, 3 Jun 2024 01:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qpmR0ZX/" Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08DB44696 for ; Mon, 3 Jun 2024 01:49:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717379348; cv=none; b=oo9JkHH2NcerZCaYHXdvu+PB6vXPY9PTco6NWB/jjv4b8nKfciwtDq7EGjH1bnokiFlkYGnT6e4Bm2JFrwSRiU1JeFyulgjf1+jo0ruhnCfL+71jVwvohW9lE7iplz5UNVkyq+fGDwX6ag4j4rnAwPp49TbS8HOjxV0cg/2fOxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717379348; c=relaxed/simple; bh=sg/MaKEkNTcSYkhOqzw6C30ReoEJBzAJpq6wC5MeBZ0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=R9nYHx+yxDil3WNmVg7IzS73EqT7holwth8WqlbP+89HW4l4Fx8JmzAkw+knaKFSDS9RCXeiTJ84d7lUSqL0NAAkeQzugi7WJJcOn1zvFIy67LyhPjUR67vrhH5/YVCdDeruCI0HevOzHWB+zC9ZXWB503PLMda8oDu1xrRlBVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qpmR0ZX/; arc=none smtp.client-ip=95.215.58.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: viro@zeniv.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717379343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IuEN8PuEp5zAf5cuG+NcBuj/QAlTcY1rhuZq1w0IU2M=; b=qpmR0ZX/ZxljhCkopWDzQMovYtPE8Grn4aPV3cqGFGeCLNHckmBGNuCfdTW/qYso+DIoRf CpwJM8nBd/6wGl3MWtXHlSx02xDTZCmtggJzndpCA7sB+pV7bNr7ow4PMn/2bEwoNA4L0d zqXUSh3z1GYsqECwvr5fu0d/AXcPGGA= X-Envelope-To: brauner@kernel.org X-Envelope-To: jack@suse.cz X-Envelope-To: linux-fsdevel@vger.kernel.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: tangyouling@kylinos.cn X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Youling Tang To: Alexander Viro , Christian Brauner Cc: Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Youling Tang Subject: [PATCH] fs/direct-io: Remove linux/prefetch.h include Date: Mon, 3 Jun 2024 09:48:34 +0800 Message-Id: <20240603014834.45294-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Youling Tang After commit c22198e78d52 ("direct-io: remove random prefetches"), Nothing in this file needs anything from `linux/prefetch.h`. Signed-off-by: Youling Tang --- fs/direct-io.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index b0aafe640fa4..bbd05f1a2145 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -37,7 +37,6 @@ #include #include #include -#include #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; -- 2.34.1