Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp891519lqj; Mon, 3 Jun 2024 04:19:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtAQ6+rOGFwmQ7ZFQW0VQCpWyNcKk93GKd4ZifHxwctFBYJ6bXGwasN8lo9/7GS2MsKrS1xP8ox0mZaOVEALUu/DoXFp0TS8SPBzNVMw== X-Google-Smtp-Source: AGHT+IGpYoEz+tprLbcLbrB8HPqHpqTlyDK4NakEMWltpSc5C2TRWLuO7jKuD+H4J4RhAPt3cHU2 X-Received: by 2002:a17:90a:bd0a:b0:2c1:9cd4:665b with SMTP id 98e67ed59e1d1-2c1dc58eb22mr7280592a91.28.1717413543794; Mon, 03 Jun 2024 04:19:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717413543; cv=pass; d=google.com; s=arc-20160816; b=QeNsn8dZ1IMfL5vVOqwPqng0F8q8Emsr5Dvloul+vFHBgChVnJ37Q11RLkXx2msi8V 1FBFV0NbtxOk26jEDZVSZHLCg8pnXE8Haf85bIBC+70M9xSFLq8Z25s+iA7hZcimZtMM 2vW0qz5UTv38K1Dh0j9fiZa8Se8ZWCteZ/kjs1pWoJTUqc/m9tqDkjfl3s+0qkOYFx+x nCQ9Hyc/tCsCsBDZ09PdceuwRwmIK2hLrr3Jwna2kQ/qURZ3zml9xvVhyuLT05F93HLa zVlCA90Ca9TvJZg3fIRIA01jwFw28FNV2ZQLNrZC2vAp8dfZnVd9CP1mZSM/RPzl7uO8 /i4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=7x+DjdWOAhVr3HrnwN5lbbMnHsmhdZvdjrufKWRKMxY=; fh=tZW7fHp/gObQID+OjHPytiW9kWxE6v2Y7DWKWm8IC7U=; b=y+2F+cMWOyU94MpHJYFMxUGB08hJVdN+ogNFfTb1CAGhZR327U3eMBFc82LygzcVZA Axr/9j32+kza/BpFAC2I8ijDC1RYAqmAqHkt0M2crJgP7JB7W7i0o30JHWAg5L46Yk0q Zm7Adw+dFv6PNlnhPYYhlezGCb9ewXI1Mbgo2XMs5gbcd+1jqt0ysQRdTuqzMCb+qEUw J7nvwmJWADD4IU5oCkdTGxXQNvkPMYRCVmXNb0mLhw6DI328GoPSuddhtDZHMchRow9m m3N0winlw5o881Okbu5yDwYkO0+65rFlqLsHB6Gaq8fYtzBmb5begyXUyyqlhYoZUMRC 9CXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=e7VpV3zs; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ose4pF9G; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-199034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199034-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a777af68si6688181a91.47.2024.06.03.04.19.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 04:19:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=e7VpV3zs; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ose4pF9G; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-199034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199034-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 37FC02816AD for ; Mon, 3 Jun 2024 11:19:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66CFF84A31; Mon, 3 Jun 2024 11:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="e7VpV3zs"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="B5L/F2DY"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Ose4pF9G"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="TC39YB7Q" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4F9019E; Mon, 3 Jun 2024 11:18:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717413532; cv=none; b=QcFXCsELasud+V/EiplReys4U3aaKE6X7JDi8WLpscrWGv1MgyFHuhiZEm5iZuXLyLRPZe6KdANYs3qKgjPtAcs+U5H200PbzOAGysBoJSzhKs7cc2C0SV6w9PkRcmyMU5UpnxJ6ZKjU/6G9+OmsIU6gfVbI69aZvSX+oOuLrg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717413532; c=relaxed/simple; bh=Z/kN2v+vYtxWp9RIZ2oSiu3+w1DhZNB4wkdQ143Vr0E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Sle9sQB2G575W4+HU6K/1P10iaadosDMwXzGyI/JWB1VIpld2tBx90rMtBmyhtG9VVgsrYoz8qL9oj3gvpxZGVxZQ4A589eTF88snaQfvPYhX68Am1tUfTOMpY1ko9o/7lK0AZhKgLkXhzlkgrMBlLlTfcbcJeE1rLbla2tYeAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=e7VpV3zs; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=B5L/F2DY; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Ose4pF9G; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=TC39YB7Q; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E6EE520032; Mon, 3 Jun 2024 11:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717413529; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7x+DjdWOAhVr3HrnwN5lbbMnHsmhdZvdjrufKWRKMxY=; b=e7VpV3zs2jh+wmbrUdLnR26tJzGo2RKy3ZFsqf0mnVPCJlUvIucThKrDFs1rU1jWtTP+yu iNgowpia0gANIlcEpA3QgQbV6TPlyHvj1qHrrT3hDzuuLDLQyl2salwDdrGrKksBDQHymK R9h4Q5T81O/V0w5/FmhEjf9RQiLL5NQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717413529; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7x+DjdWOAhVr3HrnwN5lbbMnHsmhdZvdjrufKWRKMxY=; b=B5L/F2DYaT9ZV5fIfhTflOgVFOXiQEUcfY/X5RwOZs01JsHCrAQjxFJcPNP9qoD4RUAWiq QxGVRDPT420hOzCw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=Ose4pF9G; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=TC39YB7Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717413528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7x+DjdWOAhVr3HrnwN5lbbMnHsmhdZvdjrufKWRKMxY=; b=Ose4pF9G29NVZPwO90i+1qNfs6QpxTCF5o7IkLhxYu4x41Y66IQXPJV4ycQANu5JXeETeY 6afuL1MP1e7r7x8ZQUiGNc9uxR8ZiSAOQ6b3uy1OnXoPXQulIdN6JXnJJEshz2vPyed/Xn vGS4qCT2FodIFzV2k2PZYvfAnqsKTkk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717413528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7x+DjdWOAhVr3HrnwN5lbbMnHsmhdZvdjrufKWRKMxY=; b=TC39YB7QGP3fbWt9znHOLLLqnPvKa+zz9NdPDlwUVWewicmzUccizkYdlY8VQNJtoOTvr7 ksULYXT31/JvqABA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D90E713A93; Mon, 3 Jun 2024 11:18:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 7oKvNJimXWZyJQAAD6G6ig (envelope-from ); Mon, 03 Jun 2024 11:18:48 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 816E8A087F; Mon, 3 Jun 2024 13:18:44 +0200 (CEST) Date: Mon, 3 Jun 2024 13:18:44 +0200 From: Jan Kara To: Youling Tang Cc: Alexander Viro , Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Youling Tang Subject: Re: [PATCH] fs/direct-io: Remove linux/prefetch.h include Message-ID: <20240603111844.l4g2yk5q6z23cz3n@quack3> References: <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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603014834.45294-1-youling.tang@linux.dev> X-Spam-Level: X-Spamd-Result: default: False [-3.99 / 50.00]; BAYES_HAM(-2.98)[99.92%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.cz:dkim,suse.cz:email]; MISSING_XM_UA(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCVD_TLS_LAST(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DKIM_TRACE(0.00)[suse.cz:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: E6EE520032 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Score: -3.99 On Mon 03-06-24 09:48:34, Youling Tang wrote: > 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 Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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 > -- Jan Kara SUSE Labs, CR