diff options
author | Darrick J. Wong <[email protected]> | 2018-08-10 17:55:57 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2018-08-14 08:17:02 -0700 |
commit | 7d5e049e72c4cb933b557c78cbd63285dd8102ce (patch) | |
tree | 930a949a173a777ff2ec2bf1a1c36ca07ff56bee /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1fc25f51d7c18e07e8cf935cbdd4603adfc7b3ad (diff) |
iomap: fix WARN_ON_ONCE on uninitialized variable
In commit 9dc55f1389f9569 ("iomap: add support for sub-pagesize buffered
I/O without buffer heads") we moved the initialization of poff (it's
computed from pos) into a separate helper function. Inline data only
ever deals with pos == 0, hence the WARN_ON_ONCE, but now we're testing
an uninitialized variable.
Therefore, change the test to check the parameter directly.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions