]> www.infradead.org Git - users/jedix/linux-maple.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)
committerNamjae Jeon <linkinjeon@kernel.org>
Wed, 5 Mar 2025 12:53:19 +0000 (21:53 +0900)
commit6697f819a10b238ccf01998c3f203d65d8374696
treeaad6e8cc5425c3c1f73723a168b4cc3549956aba
parent48a5eed9ad584315c30ed35204510536235ce402
exfat: fix just enough dentries but allocate a new cluster to dir

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>
fs/exfat/namei.c