lkml.org 
[lkml]   [2024]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 048/437] ubifs: convert to read/write iterators
Date
Signed-off-by: Jens Axboe <axboe@kernel.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

\
 
 \ /
  Last update: 2024-05-27 16:36    [W:1.171 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site