]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
exfat: fix just enough dentries but allocate a new cluster to dir
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 22 Nov 2024 02:50:55 +0000 (10:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:08 +0000 (13:02 +0100)
commit5d609f0d2fbadcbfa4c37a418ee6de994d957904
treeb7554bfd98c49c521d2857dcb4ed7f49a4c88798
parent696973035a4357b8e3c2147c17fb0eba14b9194f
exfat: fix just enough dentries but allocate a new cluster to dir

[ Upstream commit 6697f819a10b238ccf01998c3f203d65d8374696 ]

This commit fixes the condition for allocating cluster to parent
directory to avoid allocating new cluster to parent directory when
there are just enough empty directory entries at the end of the
parent directory.

Fixes: af02c72d0b62 ("exfat: convert exfat_find_empty_entry() to use dentry cache")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/exfat/namei.c