summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2016-01-12 09:58:39 +0300
committerDavid Sterba <dsterba@suse.com>2016-02-18 12:27:23 +0300
commit895a11b868347ca8e287f152f7816862ad4b179d (patch)
tree345c84adb239a05cb0477c618a36617d34efa2d9 /tools/perf/scripts/python/export-to-postgresql.py
parent8afd6841e13f8bbdf543c576bc1b919d331003ea (diff)
downloadlinux-895a11b868347ca8e287f152f7816862ad4b179d.tar.xz
btrfs: reada: simplify dev->reada_in_flight processing
No need to decrease dev->reada_in_flight in __readahead_hook()'s internal and reada_extent_put(). reada_extent_put() have no chance to decrease dev->reada_in_flight in free operation, because reada_extent have additional refcnt when scheduled to a dev. We can put inc and dec operation for dev->reada_in_flight to one place instead to make logic simple and safe, and move useless reada_extent->scheduled_for to a bool flag instead. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions