From nobody Fri Dec 19 17:14:54 2025 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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 1DFA556B9D for ; Thu, 11 Apr 2024 15:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849561; cv=none; b=eX9yektgZhzbXksbL6TRMxxtFHV+FoqTMBwc8z4O+5TvDd9u/pd78E6WEqQyPCazcrdY8bDYQU/jxfQWL8fA4Iaby1oSec1nfhU6WU0OIWiin8fVJnVPOv72Zx4OFX/ftBLiO7DL0w0rgWowzm+1P9vLt7Gxy/pYode3gPcgay4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849561; c=relaxed/simple; bh=1WKJzdkHI3L2R8jL5pK/9HrXe2zJtfSVj6YY4TNydrw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M4igiMIIFHFyzSbTD2mbw+bqmgHQz1aoewq2+QcLTO9fKh7CtmncyfTmXq92v/AhiWn41l4IYmsFptO3Vv9Fhh+8Nrx/C9Hlh24aS4BQ1lpSNkI4hyz0mDYujgwxKiilQPq4YfhhMkQ3kmwqifcTDRCyvfPQULrpFaIv/ogL+GQ= 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=KL2rj3+c; arc=none smtp.client-ip=209.85.166.47 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 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="KL2rj3+c" Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7cc0e831e11so170430439f.1 for ; Thu, 11 Apr 2024 08:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849559; x=1713454359; 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=wByA9TDnjq1qFFXO1qsOwLDAjmIWq2kN49uCxHbf/dI=; b=KL2rj3+c+jWmuXY5iHCvPLuwzkXOkIKuu1amdg7qnzxddadG5uS+fdF+ssI8i6st0Z y/eKIlI6pEWNX14RIc2bdnR2owCIXeNoMxvatXcwEwboJqaEyApKqxZVBCjFxiejRIG3 KERcYV8mnD7/D9BgBVdXosJDvxwtA//wbwh/P/mLkAOhRqyiDwZBQ+V90TeRuMRJDzwz cnoyytRGmuJDhlbK/qu882nV6644z3xXWza/LuXGwYaO7DND+gcrbOV7A1tzAOZQuof+ rJFrroJJAibdV+I4WIvqnSYDnPFyaAk/VFdhzTCQhlziNcDvBerPhnLtcVNOFsynuDhw Ocng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849559; x=1713454359; 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=wByA9TDnjq1qFFXO1qsOwLDAjmIWq2kN49uCxHbf/dI=; b=A6BYd/U6+SnD0Mr55N6p4kz8/9Za08/PsFoXBcKH0xMeUhqiKA+VVco4WNpIRLD8HF NJxc4ABOcvOcoxRAk9G1pYvy7jK3ENXKdLUVxJOIU333zWAABOUel1IFKJt3x1r8kF26 k8WDkwvmHMExFDsSJvdZRV9tcFXvKNbMvwLDuM+nfhSvT0B4juYaIMjwxZHBrZ17FdBa UGypB6PFT+UODfmZjakFSIO2IajXlPr6+I9e8npBqdZTla96I6a7xWS5d9LzUjTpctoA Pd/br5VJwW6fmv7VTVzgMF7nNTSmx+YJ+aeW2X78ftsIoGBNIm10KzRAkmTgOtCnIEyt AfjQ== X-Gm-Message-State: AOJu0YzLFpTNrpz6xu4A3WYdE3GckgBmalSX7glcaOP15iSiH6BT8vLL oVveqtx8CQs5NmMatDvbqhGEae4hal9JxivjwMIqYlbPTOG2/EsZ/q1tS/oitDG9eQ2y2k3V8K9 9 X-Google-Smtp-Source: AGHT+IGpgnqH4wZorIUDja2xCsVL7jr+LOzIfF3sCexHZ/xFzzWZfhbNelTZWLfLjxmlDEDFWHHbcg== X-Received: by 2002:a6b:5b10:0:b0:7d0:bd2b:43ba with SMTP id v16-20020a6b5b10000000b007d0bd2b43bamr212433ioh.0.1712849558820; Thu, 11 Apr 2024 08:32:38 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:32:38 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 041/437] fs: convert any user of fops->read() for seq_read to read_iter Date: Thu, 11 Apr 2024 09:13:01 -0600 Message-ID: <20240411153126.16201-42-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: quoted-printable Content-Type: text/plain; charset="utf-8" There's a seq_read_iter that can be used, do that. Signed-off-by: Jens Axboe --- fs/dlm/debug_fs.c | 10 +++++----- fs/gfs2/glock.c | 6 +++--- fs/ocfs2/cluster/netdebug.c | 6 +++--- fs/ocfs2/dlm/dlmdebug.c | 2 +- fs/ocfs2/dlmglue.c | 2 +- fs/orangefs/orangefs-debugfs.c | 2 +- fs/proc/array.c | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index 4fa11d9ddbb6..1236e8d13453 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -774,7 +774,7 @@ static int table_open5(struct inode *inode, struct file= *file) static const struct file_operations format1_fops =3D { .owner =3D THIS_MODULE, .open =3D table_open1, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release }; @@ -782,7 +782,7 @@ static const struct file_operations format1_fops =3D { static const struct file_operations format2_fops =3D { .owner =3D THIS_MODULE, .open =3D table_open2, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .write =3D table_write2, .llseek =3D seq_lseek, .release =3D seq_release @@ -791,7 +791,7 @@ static const struct file_operations format2_fops =3D { static const struct file_operations format3_fops =3D { .owner =3D THIS_MODULE, .open =3D table_open3, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release }; @@ -799,7 +799,7 @@ static const struct file_operations format3_fops =3D { static const struct file_operations format4_fops =3D { .owner =3D THIS_MODULE, .open =3D table_open4, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release }; @@ -807,7 +807,7 @@ static const struct file_operations format4_fops =3D { static const struct file_operations format5_fops =3D { .owner =3D THIS_MODULE, .open =3D table_open5, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release }; diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 34540f9d011c..c57d468dce21 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -2699,7 +2699,7 @@ static int gfs2_glstats_open(struct inode *inode, str= uct file *file) static const struct file_operations gfs2_glocks_fops =3D { .owner =3D THIS_MODULE, .open =3D gfs2_glocks_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D gfs2_glocks_release, }; @@ -2707,7 +2707,7 @@ static const struct file_operations gfs2_glocks_fops = =3D { static const struct file_operations gfs2_glstats_fops =3D { .owner =3D THIS_MODULE, .open =3D gfs2_glstats_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D gfs2_glocks_release, }; @@ -2876,7 +2876,7 @@ static int gfs2_glockfd_open(struct inode *inode, str= uct file *file) static const struct file_operations gfs2_glockfd_fops =3D { .owner =3D THIS_MODULE, .open =3D gfs2_glockfd_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release_private, }; diff --git a/fs/ocfs2/cluster/netdebug.c b/fs/ocfs2/cluster/netdebug.c index bc27301eab6d..fde10358c8ee 100644 --- a/fs/ocfs2/cluster/netdebug.c +++ b/fs/ocfs2/cluster/netdebug.c @@ -184,7 +184,7 @@ static int nst_fop_release(struct inode *inode, struct = file *file) =20 static const struct file_operations nst_seq_fops =3D { .open =3D nst_fop_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D nst_fop_release, }; @@ -416,7 +416,7 @@ static int stats_fop_open(struct inode *inode, struct f= ile *file) =20 static const struct file_operations stats_seq_fops =3D { .open =3D stats_fop_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D sc_fop_release, }; @@ -428,7 +428,7 @@ static int sc_fop_open(struct inode *inode, struct file= *file) =20 static const struct file_operations sc_seq_fops =3D { .open =3D sc_fop_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D sc_fop_release, }; diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index be5e9ed7da8d..cd4857d5a44a 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c @@ -651,7 +651,7 @@ static int debug_lockres_release(struct inode *inode, s= truct file *file) static const struct file_operations debug_lockres_fops =3D { .open =3D debug_lockres_open, .release =3D debug_lockres_release, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, }; /* end - debug lockres funcs */ diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index cb40cafbc062..673697bfae39 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -3299,7 +3299,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, = struct file *file) static const struct file_operations ocfs2_dlm_debug_fops =3D { .open =3D ocfs2_dlm_debug_open, .release =3D ocfs2_dlm_debug_release, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, }; =20 diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c index 1b508f543384..2f1ed95ac8fb 100644 --- a/fs/orangefs/orangefs-debugfs.c +++ b/fs/orangefs/orangefs-debugfs.c @@ -116,7 +116,7 @@ static const struct seq_operations help_debug_ops =3D { static const struct file_operations debug_help_fops =3D { .owner =3D THIS_MODULE, .open =3D orangefs_debug_help_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .release =3D seq_release, .llseek =3D seq_lseek, }; diff --git a/fs/proc/array.c b/fs/proc/array.c index 34a47fb0c57f..756fc6accd26 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -815,7 +815,7 @@ static int children_seq_open(struct inode *inode, struc= t file *file) =20 const struct file_operations proc_tid_children_operations =3D { .open =3D children_seq_open, - .read =3D seq_read, + .read_iter =3D seq_read_iter, .llseek =3D seq_lseek, .release =3D seq_release, }; --=20 2.43.0