diff options
author | David Sterba <dsterba@suse.com> | 2020-06-23 21:23:54 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-07-27 12:55:28 +0200 |
commit | a2570ef330b959eb37e3a437b9884d9cc4b6a3d9 (patch) | |
tree | 781d61888e62922b9fa091ae9bd896c75dcdc729 /fs/btrfs/tree-defrag.c | |
parent | btrfs: don't use UAPI types for fiemap callback (diff) | |
download | linux-a2570ef330b959eb37e3a437b9884d9cc4b6a3d9.tar.xz linux-a2570ef330b959eb37e3a437b9884d9cc4b6a3d9.zip |
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 '')
-rw-r--r-- | fs/btrfs/tree-defrag.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index 16c3a6d2586d..d3f28b8f4ff9 100644 --- a/fs/btrfs/tree-defrag.c +++ b/fs/btrfs/tree-defrag.c @@ -133,10 +133,9 @@ out: ret = 0; } done: - if (ret != -EAGAIN) { + if (ret != -EAGAIN) memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); - root->defrag_trans_start = trans->transid; - } + return ret; } |