linux/fs/exfat
Haotian Zhang 8ffe56b104 exfat: improve error code handling in exfat_find_empty_entry()
Change the type of 'ret' from unsigned int to int in
exfat_find_empty_entry(). Although the implicit type conversion
(int -> unsigned int -> int) does not cause actual bugs in
practice, using int directly is more appropriate for storing
error codes returned by exfat_alloc_cluster().

This improves code clarity and consistency with standard error
handling practices.

Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2026-02-12 21:21:47 +09:00
..
balloc.c exfat: fix divide-by-zero in exfat_allocate_bitmap 2025-12-03 10:00:16 +09:00
cache.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dir.c exfat: add setlease file operation 2026-01-12 10:55:46 +01:00
exfat_fs.h exfat: validate the cluster bitmap bits of directory 2025-12-03 10:00:16 +09:00
exfat_raw.h exfat: Add support for FS_IOC_{GET,SET}FSLABEL 2025-09-30 13:49:31 +09:00
fatent.c exfat: validate the cluster bitmap bits of directory 2025-12-03 10:00:16 +09:00
file.c exfat: add setlease file operation 2026-01-12 10:55:46 +01:00
inode.c exfat: drop redundant conversion to bool 2025-09-30 13:34:43 +09:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: convert to new timestamp accessors 2023-10-18 13:26:21 +02:00
namei.c exfat: improve error code handling in exfat_find_empty_entry() 2026-02-12 21:21:47 +09:00
nls.c exfat: fix out-of-bounds in exfat_nls_to_ucs2() 2025-10-15 17:53:20 +09:00
super.c exfat: fix remount failure in different process environments 2025-12-03 10:00:17 +09:00