[PATCH 048/437] ubifs: convert to read/write iterators

Jens Axboe
2024-04-11T15:33:04Z

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