[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-49-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:13:08 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 048/437] ubifs: convert to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
fs/ubifs/debug.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index ac77ac1fd73e..2d63f57aca6f 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2728,6 +2728,7 @@ static ssize_t dfs_file_read(struct file *file, char __user *u, size_t count,
return provide_user_output(val, u, count, ppos);
}
+FOPS_READ_ITER_HELPER(dfs_file_read);
/**
* interpret_user_input - interpret user debugfs file input.
@@ -2801,11 +2802,12 @@ static ssize_t dfs_file_write(struct file *file, const char __user *u,
return count;
}
+FOPS_WRITE_ITER_HELPER(dfs_file_write);
static const struct file_operations dfs_fops = {
.open = dfs_file_open,
- .read = dfs_file_read,
- .write = dfs_file_write,
+ .read_iter = dfs_file_read_iter,
+ .write_iter = dfs_file_write_iter,
.owner = THIS_MODULE,
.llseek = no_llseek,
};
--
2.43.0
Powered by blists - more mailing lists