summaryrefslogtreecommitdiff
path: root/kernel/power/user.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-10-24 17:44:54 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 17:51:45 +0100
commitf5389f330d6f28d648c51624f059b0bfdd9b1806 (patch)
treea995b50d287e8cfe172b2a68351522d06ccef889 /kernel/power/user.c
parentb3470b5dbe1300dea94191ae4b7d070be9a5cdc9 (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>
Diffstat (limited to 'kernel/power/user.c')
0 files changed, 0 insertions, 0 deletions