commit | f5389f330d6f28d648c51624f059b0bfdd9b1806 | [log] [tgz] |
---|---|---|
author | Johannes Thumshirn <jthumshirn@suse.de> | Thu Oct 24 17:44:54 2019 +0200 |
committer | David Sterba <dsterba@suse.com> | Mon Nov 18 17:51:45 2019 +0100 |
tree | a995b50d287e8cfe172b2a68351522d06ccef889 | |
parent | b3470b5dbe1300dea94191ae4b7d070be9a5cdc9 [diff] |
btrfs: remove cached space_info in btrfs_statfs() In btrfs_statfs() we cache fs_info::space_info in a local variable only to use it once in a list_for_each_rcu() statement. Not only is the local variable unnecessary it even makes the code harder to follow as it's not clear which list it is iterating. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>