diff options
author | Qu Wenruo <wqu@suse.com> | 2017-11-08 08:54:26 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-01-22 16:08:12 +0100 |
commit | bae15d95e247f94ceb32caaf13d1d71ecbfc8735 (patch) | |
tree | 79a144412a3b0a8ecb9f5631d6f09a5a4d342625 /fs/btrfs/send.c | |
parent | ad7b0368f33cffe67fecd302028915926e50ef7e (diff) | |
download | linux-stable-bae15d95e247f94ceb32caaf13d1d71ecbfc8735.tar.gz linux-stable-bae15d95e247f94ceb32caaf13d1d71ecbfc8735.tar.bz2 linux-stable-bae15d95e247f94ceb32caaf13d1d71ecbfc8735.zip |
btrfs: Cleanup existing name_len checks
Since tree-checker has verified leaf when reading from disk, we don't
need the existing verify_dir_item() or btrfs_is_name_len_valid() checks.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 20d3300bd268..f306c608dc28 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -1059,12 +1059,6 @@ static int iterate_dir_item(struct btrfs_root *root, struct btrfs_path *path, } } - ret = btrfs_is_name_len_valid(eb, path->slots[0], - (unsigned long)(di + 1), name_len + data_len); - if (!ret) { - ret = -EIO; - goto out; - } if (name_len + data_len > buf_len) { buf_len = name_len + data_len; if (is_vmalloc_addr(buf)) { |