summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorYichong Chen <chenyichong@uniontech.com>2026-07-29 10:25:43 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-07-29 18:08:54 +0900
commit0901a71e8cff5c60dd464529cba2ed30a2ab0a3f (patch)
tree7d2eaeb9cf84f4049a39102b884abc8c10c8e6a3 /scripts/stackusage
parentce12a39bed483008683438962b3a605374e6f803 (diff)
downloadlinux-0901a71e8cff5c60dd464529cba2ed30a2ab0a3f.tar.gz
linux-0901a71e8cff5c60dd464529cba2ed30a2ab0a3f.zip
exfat: clean up new entry on add entry failure
exfat_add_entry() initializes a new directory entry set before writing it with exfat_put_dentry_set(). If the write fails, mkdir/create returns an error but a partially written entry may be left behind. For non-zero-size directories, the failure also happens after a cluster has been allocated for the new directory. Clean up the new entry best-effort, and free the newly allocated directory cluster only when the cleanup writeback succeeds. This avoids freeing a cluster that may still be referenced by an on-disk entry if the cleanup fails. Signed-off-by: Yichong Chen <chenyichong@uniontech.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions