aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2017-09-08 12:05:07 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-09-12 15:34:46 +0000
commit4d286c89e412fc2eaa1b8988481d2f32b5e3826f (patch)
tree84bbfd172257b0a4fb79f798d193627eb7ccd7bb /fs/btrfs/dev-replace.c
parentperf tools: Open perf.data with O_CLOEXEC flag (diff)
downloadkernel-4d286c89e412fc2eaa1b8988481d2f32b5e3826f.tar.gz
kernel-4d286c89e412fc2eaa1b8988481d2f32b5e3826f.zip
perf ui progress: Make sure we always define step value
Unlikely, but we could have ui_progress__init being called with total < 16, which would set the next and step variables to 0. That would force unnecessary ui_progress__ops->update calls because 'next' would never raise. Forcing the next and step values to be always > 0. Signed-off-by: Jiri Olsa <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions