]> www.infradead.org Git - users/jedix/linux-maple.git/commit
udf: refactor udf_current_aext() to handle error
authorZhao Mengmeng <zhaomengmeng@kylinos.cn>
Tue, 1 Oct 2024 11:54:23 +0000 (19:54 +0800)
committerJan Kara <jack@suse.cz>
Wed, 2 Oct 2024 10:37:01 +0000 (12:37 +0200)
commitee703a7068f95764cfb62b57db1d36e465cb9b26
tree304a2109432d55dcbac566e30fc366657b4a41d5
parent9852d85ec9d492ebef56dc5f229416c925758edc
udf: refactor udf_current_aext() to handle error

As Jan suggested in links below, refactor udf_current_aext() to
differentiate between error, hit EOF and success, it now takes pointer to
etype to store the extent type, return 1 when getting etype success,
return 0 when hitting EOF and return -errno when err.

Link: https://lore.kernel.org/all/20240912111235.6nr3wuqvktecy3vh@quack3/
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-2-zhaomzhao@126.com
fs/udf/inode.c
fs/udf/truncate.c
fs/udf/udfdecl.h