]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
btrfs: remove unused btrfs_fs_info::total_pinned
authorNikolay Borisov <nborisov@suse.com>
Tue, 22 Jun 2021 13:27:38 +0000 (16:27 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 22 Jun 2021 17:58:26 +0000 (19:58 +0200)
This got added 14 years ago in 324ae4df00fd ("Btrfs: Add block group
pinned accounting back") but it was not ever used. Subsequently its
usage got gradually removed in 8790d502e440 ("Btrfs: Add support for
mirroring across drives") and 11833d66be94 ("Btrfs: improve async block
group caching"). Let's remove it for good!

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h

index d7ef4d7d2c1afbd28ae0ffec18187be253fea815..e5e53e592d4f99650423fb88f2c4c18d7e13ef97 100644 (file)
@@ -823,8 +823,6 @@ struct btrfs_fs_info {
        struct kobject *space_info_kobj;
        struct kobject *qgroups_kobj;
 
-       u64 total_pinned;
-
        /* used to keep from writing metadata until there is a nice batch */
        struct percpu_counter dirty_metadata_bytes;
        struct percpu_counter delalloc_bytes;