diff options
author | Omar Sandoval <osandov@fb.com> | 2019-09-04 22:13:25 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 15:13:50 +0300 |
commit | 871129332d74c9e94bd110932ac4445833995639 (patch) | |
tree | b684145f2cfd170d35d7b154559f6810d44acbe6 /fs/read_write.c | |
parent | 457b0a3d6e266f40a367205e224b971e4da7f5f8 (diff) | |
download | linux-871129332d74c9e94bd110932ac4445833995639.tar.xz |
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 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index 0074afa7ecb3..4d60146243df 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -385,6 +385,7 @@ int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t return security_file_permission(file, read_write == READ ? MAY_READ : MAY_WRITE); } +EXPORT_SYMBOL(rw_verify_area); static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) { |