summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-03 17:24:36 +0200
committerDavid Sterba <dsterba@suse.com>2023-06-19 13:59:28 +0200
commit113fa05c2fa1a9ee45a31909e6d78666e426adca (patch)
tree77ffc202849bbacd53ef1278a54c41eb2abb7744 /fs/btrfs/extent_io.h
parent31d89399dad0cf5524bd0e4e2c2827ae7004b2ca (diff)
downloadlinux-113fa05c2fa1a9ee45a31909e6d78666e426adca.tar.gz
linux-113fa05c2fa1a9ee45a31909e6d78666e426adca.tar.bz2
linux-113fa05c2fa1a9ee45a31909e6d78666e426adca.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index e11ee09ab26b..217c433bb999 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -79,7 +79,6 @@ struct extent_buffer {
struct btrfs_fs_info *fs_info;
spinlock_t refs_lock;
atomic_t refs;
- atomic_t io_pages;
int read_mirror;
struct rcu_head rcu_head;
pid_t lock_owner;