Re: [PATCH v12 01/17] fs: export rw_verify_area()
From: Omar Sandoval <osandov@osandov.com>
Date: 2021-11-18 19:15:52
On Thu, Nov 18, 2021 at 03:57:14PM +0100, David Sterba wrote:
On Wed, Nov 17, 2021 at 12:19:11PM -0800, Omar Sandoval wrote:quoted
From: Omar Sandoval <redacted> I'm adding Btrfs ioctls to read and write compressed data, and rather than duplicating the checks in rw_verify_area(), let's just export it. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Omar Sandoval <redacted>--- a/include/linux/fs.h +++ b/include/linux/fs.h@@ -3244,6 +3244,7 @@ extern loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size); extern loff_t no_seek_end_llseek_size(struct file *, loff_t, int, loff_t); extern loff_t no_seek_end_llseek(struct file *, loff_t, int); +extern int rw_verify_area(int, struct file *, const loff_t *, size_t);Do you have an ack from VFS people for exporting a function from fs/interna.h to the normal fs.h?
Nope, although I've sent it enough times that they should've nacked it by now if they cared. I guess I didn't cc fsdevel on this version, so I'll ping this patch on v11.