]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: update super block operations
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 13 Feb 2026 01:37:53 +0000 (10:37 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 19 Feb 2026 12:48:06 +0000 (21:48 +0900)
commit6251f0b0de7d645e3591931ca4c11d8322c1866f
treebfb1c37f0f5c052c1eb8772b6e5d914215c12092
parent40796051991d9dacadebbdbee11e0c851215c4c4
ntfs: update super block operations

Update the super block operations to support the new fs_context-based
mount API, full read-write support including ->sync_fs, and file system
shutdown support.

Update ntfs_statfs() to provide statistics using atomic counters for free
clusters and MFT records.

Add a dedicated workqueue to compute the total number of free clusters by
scanning  asynchronously. Synchronous bitmap scanning during mount
can take a very long time on large volumes, severely delaying mount
completion. Moving this to the background allows mount to finish almost
immediately.

Implement ntfs_write_volume_label() to allow changing the volume label.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/super.c