mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] exfat: fix cluster allocation accounting and locking
@ 2026-09-05  5:49 Chi Zhiling
  2026-09-05  5:49 ` [PATCH 1/2] exfat: fix used_clusters accounting during cluster allocation Chi Zhiling
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chi Zhiling @ 2026-09-05  5:49 UTC (permalink / raw)
  To: exfat, linux-kernel; +Cc: Namjae Jeon, Sungjong Seo, Yuezhang Mo, Chi Zhiling

From: Chi Zhiling <chizhiling@kylinos.cn>

Patch 1 fixes sbi->used_clusters accounting when cluster allocation
fails partway through. This can cause the counter to underflow.
The issue is caught by generic/476.

Patch 2 takes bitmap_lock before checking and allocating clusters.


Chi Zhiling (2):
  exfat: fix used_clusters accounting during cluster allocation
  exfat: take bitmap_lock at the start of exfat_alloc_cluster()

 fs/exfat/fatent.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-08  0:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05  5:49 [PATCH 0/2] exfat: fix cluster allocation accounting and locking Chi Zhiling
2026-09-05  5:49 ` [PATCH 1/2] exfat: fix used_clusters accounting during cluster allocation Chi Zhiling
2026-09-05  5:49 ` [PATCH 2/2] exfat: take bitmap_lock at the start of exfat_alloc_cluster() Chi Zhiling
2026-09-07  3:21   ` David Timber
2026-09-07  8:04     ` Chi Zhiling
2026-09-08  0:53       ` David Timber
2026-09-05  9:33 ` [PATCH 0/2] exfat: fix cluster allocation accounting and locking Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®