fs/9p: fix error reporting in v9fs_dir_release
authorEric Van Hensbergen <ericvh@kernel.org>
Sun, 18 Dec 2022 21:02:24 +0000 (21:02 +0000)
committerEric Van Hensbergen <ericvh@kernel.org>
Fri, 24 Feb 2023 13:42:40 +0000 (13:42 +0000)
commit89c58cb395ec0fb58df5475dced1093eaf5896ad
tree12a13081fc7b1831afad52925c74b6c5f92ab4ca
parent3866584a1c56a2bbc8c0981deb4476d0b801969e
fs/9p: fix error reporting in v9fs_dir_release

Checking the p9_fid_put value allows us to pass back errors
involved if we end up clunking the fid as part of dir_release.

This can help with more graceful response to errors in writeback
among other things.

Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/vfs_dir.c