diff options
author | 2023-05-03 16:49:25 +0900 | |
---|---|---|
committer | 2023-07-20 19:05:52 +0000 | |
commit | eee4a119e96c2f58cfd1b6d4de42095abc5f8877 (patch) | |
tree | bbd4a94079873cbb03ae65afde6eded9fb130ce2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/9p: remove unnecessary invalidate_inode_pages2 (diff) | |
download | wireguard-linux-eee4a119e96c2f58cfd1b6d4de42095abc5f8877.tar.xz wireguard-linux-eee4a119e96c2f58cfd1b6d4de42095abc5f8877.zip |
9p: fix ignored return value in v9fs_dir_release
retval from filemap_fdatawrite was immediately overwritten by the
following p9_fid_put: preserve any error in fdatawrite if there
was any first.
This fixes the following scan-build warning:
fs/9p/vfs_dir.c:220:4: warning: Value stored to 'retval' is never read [deadcode.DeadStores]
retval = filemap_fdatawrite(inode->i_mapping);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: 89c58cb395ec ("fs/9p: fix error reporting in v9fs_dir_release")
Cc: stable@vger.kernel.org
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions