Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp110695lqj; Thu, 11 Apr 2024 11:13:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXweTQnHD388ON8d7y6a4aH7htB5ptHCGYr6TReVoVE1JHGAIwAIoS9xfW/8TTLdS3+k/qmQ6A2CPFh5c+ThPBL6ckYIkIXlKXqJb22Gg== X-Google-Smtp-Source: AGHT+IGm65Nj4C2jAWlLD4oaik1oTHjNa8arT2KF3dwY+BbzduFOEunuK8+MJn/OUPvC59uJh6Fu X-Received: by 2002:a17:90b:3bcf:b0:2a2:5db5:b1ed with SMTP id ph15-20020a17090b3bcf00b002a25db5b1edmr342451pjb.17.1712859212756; Thu, 11 Apr 2024 11:13:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712859212; cv=pass; d=google.com; s=arc-20160816; b=c5/TuDrRjXWpmUW77MyxdwmNywyp2Qy4b19XdqZiilgqo/MsWaDu6iuBSzvGfxstTj WIfU7ckjD5hdMsRbGj+sJo2cJmGHlla73m5q0xMvQ0lJSau0t/VVr+d+llOuYhGGlA7s 31+7dMeA8fvtsyO5cBbMMMz3m7F5OHl7JijFuJhHSDb3QQF12NKHsDIcfP0VcOak+Vis mtD4HRW15zxwL6mY1b8WEQwlFIwlZX0RjuXuJPbXr5PO6jj23MoePAg1bj3NYM3QGzdg lv1s+4P6fkPjuCpqNA8R0zxP6H1S3IF2f6oIIc6yxmDfsMo0rstl67nHp9tHyAIqZTjX nIZA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bOfssJivSCemVVoipy+tqLOOQD7sJiCVPG0eYTdUsjU=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=dtfnxa8IhT7hZOULXAOBxu5yTh7tU1vV3hLIKU44qozTnBvZipsDxEo+qLtRzSh9Wl Rh0e/uVh2Hf7PakRo8n9lzTWMeVdqfUYOYAqFdXWM3OOxgVSWfz6C+VJJD3S3DqjeopA w7brNcXtexm6AuhiTl6pAP4VP8qwtToqLzmrSZ0p5loFLvSagRitqi9nLNFgQFOHfrZC OWxKCCHMegiOYsQINYnWgY4D9vzYICZUl3KcQTutx2eoT9Z8MPHN8h4CjbGZHyQYcbJ9 3OQziCv/RfSyK7OkKpwmWqiuwW/z7wG3tpx1rMqdMcTrPmuG+4sYqrA38P6lCllqL/cf RXHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=f9RBlfCr; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141219-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w19-20020a17090a8a1300b002a6b9d7fc45si301924pjn.37.2024.04.11.11.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 11:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=f9RBlfCr; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141219-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 07B56B2639E for ; Thu, 11 Apr 2024 17:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAF30204071; Thu, 11 Apr 2024 15:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="f9RBlfCr" Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 C2EEE20404B for ; Thu, 11 Apr 2024 15:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850226; cv=none; b=TLUDopP2X4VYBLKD1eI8XBgWVoxtzzopBwaM0rlyT6OsV8Z5Jgbx3b/4Aqr7TzV4Y4Lzm656c6ieaD3WKTKlFw+Dwm5BtjyxcC831h09cVKlkUlVejlZjdNsK8SYRa2WDs8Ck3YireJDE3Tt6GUn2KkNNTn8Sx0jMQaDcUIerEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850226; c=relaxed/simple; bh=zWATLctHVPydKOBIwB+abK4Uy0TcMGukpkxMWhEsUPo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l8D4WvdFqCfIL4P4TN0G2faoj0ArjXMlFQi+pD4FB1tD1+RIkZkHIT0RPCYgAIGXe+aRey100IufIifHOnPX9wIbjQGbydr+ATRXhL+2LgrXosIjre3HGAT0jglgOQbB3tZ8RO09VNnn6HG0orj64Ci11bAv3BKJGRZRz+wgqn4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=f9RBlfCr; arc=none smtp.client-ip=209.85.166.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-7c8e4c0412dso69705839f.1 for ; Thu, 11 Apr 2024 08:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712850224; x=1713455024; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bOfssJivSCemVVoipy+tqLOOQD7sJiCVPG0eYTdUsjU=; b=f9RBlfCrF3zTIpiiPMx/ylo8hyiIAd1sGs90HQlHKiebaeKEJY93VFn8Bk25BSDNPG A8sdI2ORSM8L3akNm18a635e7srzN0gjYYewy0D1xkbhDniZEKabjh8q52KlD0b9+Jww 4vn5IaUNdnPl9+/ydlx9MOhUr3hhacETkj2T26HV/g7c77KdDPw5XoPmDJSZA9EdWLoP HZZWBxBZ1Jis/Tq4SU1yDwF6nXzppJzZvrIIfSDcdUfSmq10hfKWq3YJyrm5H/hKTzJb 9WaLLr1+N/ofZUnZFra/zq14YgudAiVIH4DmsdZnj7zVve5A3hVV9uBpbUmNQaWRB40H Jfkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712850224; x=1713455024; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bOfssJivSCemVVoipy+tqLOOQD7sJiCVPG0eYTdUsjU=; b=xSQq7SxdlxQCaWf6XdbmQPfWyLns4qFgrvyaUJuB7xYtzdqrL1tVuhbI/qo89dZHrX DnTi06XGkIgTyyrBOirK9cqPfnFlG3h+MwixdXehN6PrLqMlMJ7tBevNWnY43iHg0NUr q7RvShgWAQVfcxb/lI5nnUBhbjGgX1YqKkz7Ld2madvCiOhOPtKdhSOtRYVpWJqxKjml glP1Ly6GbGzf6g48rGI4V3cCXbh42md3hQacOaJva5Ed5EnwZNInhLvj306SfVXPMR0j Ht4v+oZh9lGJXemM7O7aX+Ob6haSRkkLX6QEnS0mgTbxRkgmCW3iWJZGUzBRZZ58XRYF 3m4A== X-Gm-Message-State: AOJu0YwDsHft8hs5aMUaGx18fWPTfl7Xj7Zjt7xu44IuKsTu5ETFgQ/3 8kd+lT4jdJ/wdvhMPmmv8oJlJHbHHIW8oh4IYEnYPTvJPJWvhfJYj7WUiK/qhJbtoaITumIS7rb x X-Received: by 2002:a6b:7b05:0:b0:7d6:60dc:bc8e with SMTP id l5-20020a6b7b05000000b007d660dcbc8emr212738iop.1.1712850223745; Thu, 11 Apr 2024 08:43:43 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:43:42 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 432/437] seq_file: switch to using ->read_iter() Date: Thu, 11 Apr 2024 09:19:32 -0600 Message-ID: <20240411153126.16201-433-axboe@kernel.dk> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411153126.16201-1-axboe@kernel.dk> References: <20240411153126.16201-1-axboe@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There's a seq_read_iter() helper already, use it. Signed-off-by: Jens Axboe --- include/linux/seq_file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 234bcdb1fba4..a562c611ed3d 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h @@ -188,7 +188,7 @@ static int __name ## _open(struct inode *inode, struct file *file) \ static const struct file_operations __name ## _fops = { \ .owner = THIS_MODULE, \ .open = __name ## _open, \ - .read = seq_read, \ + .read_iter = seq_read_iter, \ .llseek = seq_lseek, \ .release = seq_release, \ } @@ -202,7 +202,7 @@ static int __name ## _open(struct inode *inode, struct file *file) \ static const struct file_operations __name ## _fops = { \ .owner = THIS_MODULE, \ .open = __name ## _open, \ - .read = seq_read, \ + .read_iter = seq_read_iter, \ .llseek = seq_lseek, \ .release = single_release, \ } @@ -216,8 +216,8 @@ static int __name ## _open(struct inode *inode, struct file *file) \ static const struct file_operations __name ## _fops = { \ .owner = THIS_MODULE, \ .open = __name ## _open, \ - .read = seq_read, \ - .write = __name ## _write, \ + .read_iter = seq_read_iter, \ + .write_iter = __name ## _write_iter, \ .llseek = seq_lseek, \ .release = single_release, \ } -- 2.43.0