linux/fs/ntfs/inode.c
Namjae Jeon 0c32a42fd9 ntfs: unhash failed inode reads
Remove a newly allocated inode from the inode hash before discarding it.
NTFS may set i_nlink before a later initialization step fails, in which
case iput alone can retain the incomplete inode in the cache.

Fixes: bf6be898fbc5 ("ntfs: discard inodes that fail initialization")
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2026-09-13 11:41:54 +09:00

3894 lines
112 KiB