]> git.ipfire.org Git - thirdparty/linux.git/commit
udf: refactor udf_next_aext() to handle error
authorZhao Mengmeng <zhaomengmeng@kylinos.cn>
Tue, 1 Oct 2024 11:54:24 +0000 (19:54 +0800)
committerJan Kara <jack@suse.cz>
Wed, 2 Oct 2024 12:10:50 +0000 (14:10 +0200)
commitb405c1e58b73981da0f8df03b00666b22b9397ae
tree70894d7f47122bfa41ce5ec4efbe54f7fff00816
parentee703a7068f95764cfb62b57db1d36e465cb9b26
udf: refactor udf_next_aext() to handle error

Since udf_current_aext() has error handling, udf_next_aext() should have
error handling too. Besides, when too many indirect extents found in one
inode, return -EFSCORRUPTED; when reading block failed, return -EIO.

Signed-off-by: Zhao Mengmeng <zhaomengmeng@kylinos.cn>
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20241001115425.266556-3-zhaomzhao@126.com
fs/udf/balloc.c
fs/udf/directory.c
fs/udf/inode.c
fs/udf/super.c
fs/udf/truncate.c
fs/udf/udfdecl.h