]> www.infradead.org Git - users/jedix/linux-maple.git/commit
exfat: remove count used cluster from exfat_statfs()
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 19 Feb 2025 19:00:09 +0000 (13:00 -0600)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 27 Mar 2025 12:18:02 +0000 (21:18 +0900)
commitf6369ae1f088cb6d18d7a07eec95d7c10c2a2a5e
tree35ab7963cb042f999c15f8267b529c234bb85764
parenta36e0ab44cb344728f7c0fdc34edcbae64739c16
exfat: remove count used cluster from exfat_statfs()

The callback function statfs() is called only after the file
system is mounted. During the process of mounting the exFAT
file system, the number of used clusters has been counted, so
the condition "sbi->used_clusters == EXFAT_CLUSTERS_UNTRACKED"
is always false and should be deleted.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/exfat_fs.h
fs/exfat/super.c