diff options
author | David Sterba <dsterba@suse.com> | 2020-06-23 22:23:54 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-07-27 13:55:28 +0300 |
commit | a2570ef330b959eb37e3a437b9884d9cc4b6a3d9 (patch) | |
tree | 781d61888e62922b9fa091ae9bd896c75dcdc729 /fs/btrfs/disk-io.c | |
parent | bab16e21e8bbd644067289cfa328f8a67f3e333d (diff) | |
download | linux-a2570ef330b959eb37e3a437b9884d9cc4b6a3d9.tar.xz |
btrfs: remove unused btrfs_root::defrag_trans_start
Last touched in 2013 by commit de78b51a2852 ("btrfs: remove cache only
arguments from defrag path") that was the only code that used the value.
Now it's only set but never used for anything, so we can remove it.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index b5b7055b7953..dbf90cd49513 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1141,10 +1141,6 @@ static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, memset(&root->root_key, 0, sizeof(root->root_key)); memset(&root->root_item, 0, sizeof(root->root_item)); memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); - if (!dummy) - root->defrag_trans_start = fs_info->generation; - else - root->defrag_trans_start = 0; root->root_key.objectid = objectid; root->anon_dev = 0; |