minix: move releasing pages into unlink and rename
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Jan 2023 17:30:21 +0000 (18:30 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Jan 2023 00:26:24 +0000 (19:26 -0500)
commit35bb6a092cfcab895ea7e9c31a2cc6b80b25c134
tree1ae34dd0fa0e83f8763d916d5856e4f7e2ac9ff5
parent4a29a1262a47acd8e81a3824492a5aa8f8c5fc95
minix: move releasing pages into unlink and rename

Instead of consuming the page reference and kmap in the low-level
minix_delete_entry and minix_set_link helpers, do it in the callers
where that code can be shared with the error cleanup path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/minix/dir.c
fs/minix/namei.c