| From | 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 |
| |
There's a seq_read_iter that can be used, do that.
Signed-off-by: Jens Axboe <axboe@kernel.dk> --- 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 = { .owner = THIS_MODULE, .open = table_open1, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = seq_release }; @@ -782,7 +782,7 @@ static const struct file_operations format1_fops = { static const struct file_operations format2_fops = { .owner = THIS_MODULE, .open = table_open2, - .read = seq_read, + .read_iter = seq_read_iter, .write = table_write2, .llseek = seq_lseek, .release = seq_release @@ -791,7 +791,7 @@ static const struct file_operations format2_fops = { static const struct file_operations format3_fops = { .owner = THIS_MODULE, .open = table_open3, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = seq_release }; @@ -799,7 +799,7 @@ static const struct file_operations format3_fops = { static const struct file_operations format4_fops = { .owner = THIS_MODULE, .open = table_open4, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = seq_release }; @@ -807,7 +807,7 @@ static const struct file_operations format4_fops = { static const struct file_operations format5_fops = { .owner = THIS_MODULE, .open = table_open5, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = 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, struct file *file) static const struct file_operations gfs2_glocks_fops = { .owner = THIS_MODULE, .open = gfs2_glocks_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = gfs2_glocks_release, }; @@ -2707,7 +2707,7 @@ static const struct file_operations gfs2_glocks_fops = { static const struct file_operations gfs2_glstats_fops = { .owner = THIS_MODULE, .open = gfs2_glstats_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = gfs2_glocks_release, }; @@ -2876,7 +2876,7 @@ static int gfs2_glockfd_open(struct inode *inode, struct file *file) static const struct file_operations gfs2_glockfd_fops = { .owner = THIS_MODULE, .open = gfs2_glockfd_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = 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) static const struct file_operations nst_seq_fops = { .open = nst_fop_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = nst_fop_release, }; @@ -416,7 +416,7 @@ static int stats_fop_open(struct inode *inode, struct file *file) static const struct file_operations stats_seq_fops = { .open = stats_fop_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = sc_fop_release, }; @@ -428,7 +428,7 @@ static int sc_fop_open(struct inode *inode, struct file *file) static const struct file_operations sc_seq_fops = { .open = sc_fop_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = 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, struct file *file) static const struct file_operations debug_lockres_fops = { .open = debug_lockres_open, .release = debug_lockres_release, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = 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 = { .open = ocfs2_dlm_debug_open, .release = ocfs2_dlm_debug_release, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, }; 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 = { static const struct file_operations debug_help_fops = { .owner = THIS_MODULE, .open = orangefs_debug_help_open, - .read = seq_read, + .read_iter = seq_read_iter, .release = seq_release, .llseek = 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, struct file *file) const struct file_operations proc_tid_children_operations = { .open = children_seq_open, - .read = seq_read, + .read_iter = seq_read_iter, .llseek = seq_lseek, .release = seq_release, }; -- 2.43.0
|