diff options
author | Omar Sandoval <osandov@fb.com> | 2021-08-12 15:34:57 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:50 +0100 |
commit | f6f7a25a650818c61defa97d60a79b216618315f (patch) | |
tree | 9e347008104e54d5ab694e8dc0e941d54ff852fc /fs/btrfs/file-item.c | |
parent | 871129332d74c9e94bd110932ac4445833995639 (diff) |
fs: export variant of generic_write_checks without iov_iter
Encoded I/O in Btrfs needs to check a write with a given logical size
without an iov_iter that matches that size (because the iov_iter we have
is for the compressed data). So, factor out the parts of
generic_write_check() that don't need an iov_iter into a new
generic_write_checks_count() function and export that.
Reviewed-by: Nikolay Borisov <nborisov@suse.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/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions