aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorGravatar Omar Sandoval <osandov@fb.com> 2019-09-04 12:13:25 -0700
committerGravatar David Sterba <dsterba@suse.com> 2022-03-14 13:13:50 +0100
commit871129332d74c9e94bd110932ac4445833995639 (patch)
treeb684145f2cfd170d35d7b154559f6810d44acbe6 /include/linux/fs.h
parentbtrfs: qgroup: remove outdated TODO comments (diff)
downloadlinux-871129332d74c9e94bd110932ac4445833995639.tar.gz
linux-871129332d74c9e94bd110932ac4445833995639.tar.bz2
linux-871129332d74c9e94bd110932ac4445833995639.zip
fs: export rw_verify_area()
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 <osandov@fb.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index e2d892b201b0..0ebfc2519212 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3173,6 +3173,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);
+int rw_verify_area(int, struct file *, const loff_t *, size_t);
extern int generic_file_open(struct inode * inode, struct file * filp);
extern int nonseekable_open(struct inode * inode, struct file * filp);
extern int stream_open(struct inode * inode, struct file * filp);