diff options
author | David Sterba <dsterba@suse.com> | 2018-11-22 17:16:46 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-12-17 14:51:40 +0100 |
commit | 31fecccbd7b2174487a6b7361153b60a4eda6108 (patch) | |
tree | 4694a109291d4c7f4a0b2c99974e56edcc8c5d8d /fs/fcntl.c | |
parent | btrfs: replace async_cow::root with fs_info (diff) | |
download | linux-dev-31fecccbd7b2174487a6b7361153b60a4eda6108.tar.xz linux-dev-31fecccbd7b2174487a6b7361153b60a4eda6108.zip |
btrfs: remove redundant csum buffer in btrfs_io_bio
The io_bio tracks checksums and has an inline buffer or an allocated
one. And there's a third member that points to the right one, but we
don't need to use an extra pointer for that. Let btrfs_io_bio::csum
point to the right buffer and check that the inline buffer is not
accidentally freed.
This shrinks struct btrfs_io_bio by 8 bytes.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions