ext2: propagate errors from ext2_prepare_chunk
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Jan 2023 08:52:05 +0000 (09:52 +0100)
committerJan Kara <jack@suse.cz>
Mon, 16 Jan 2023 11:19:25 +0000 (12:19 +0100)
commit7a5fa171a2869e99fe38f61c60274e7b4bf3a5e0
treea4af997693c04d6d156a8a55425862910104af12
parent1fb40763a58c1f8130c0131c624060c6bbb929b8
ext2: propagate errors from ext2_prepare_chunk

Propagate errors from ext2_prepare_chunk to the callers and handle them
there.  While touching the prototype also turn update_times into a bool
from the current int used as bool.

[JK: fixed up error recovery path in ext2_rename()]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230116085205.2342975-1-hch@lst.de>
fs/ext2/dir.c
fs/ext2/ext2.h
fs/ext2/namei.c