OSDN Git Service

btrfs: remove the io_pages field in struct extent_buffer
authorChristoph Hellwig <hch@lst.de>
Wed, 3 May 2023 15:24:36 +0000 (17:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:28 +0000 (13:59 +0200)
commit113fa05c2fa1a9ee45a31909e6d78666e426adca
tree77ffc202849bbacd53ef1278a54c41eb2abb7744
parent31d89399dad0cf5524bd0e4e2c2827ae7004b2ca
btrfs: remove the io_pages field in struct extent_buffer

No need to track the number of pages under I/O now that each
extent_buffer is read and written using a single bio.  For the
read side we need to grab an extra reference for the duration of
the I/O to prevent eviction, though.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h