]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: remove unsupported quota handling
authorDaeMyung Kang <charsyam@gmail.com>
Sun, 17 May 2026 03:44:47 +0000 (12:44 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Fri, 5 Jun 2026 15:20:03 +0000 (00:20 +0900)
commitcbe287fd65f1a51eb1720e93ceca7ee8d8b011bc
treef23442457fd311105d090d7d434aa00ff6bf594e
parent0283841f0c1efb25682e7ba061135758228005c1
ntfs: remove unsupported quota handling

The ntfs driver does not implement quota accounting.  It creates
new inodes with the NTFS 1.2 $STANDARD_INFORMATION layout and does
not maintain the NTFS 3.x owner_id/quota_charged fields or the
$Quota usage records that Windows would need for meaningful quota
accounting.

The only runtime quota path left in the driver is the remount-rw
code that tries to mark $Quota/$Q out of date, plus the mount-time
code that loads $Quota and its $Q index solely to support that
marker.

Since the driver does not maintain the per-file quota metadata,
setting QUOTA_FLAG_OUT_OF_DATE does not make the quota state
meaningful, and failures in this unsupported path can unnecessarily
block remount-rw or force a mount read-only.

Remove the quota marker, the $Quota/$Q loading state, and the
unused quota volume flag.  Keep the on-disk quota layout definitions
in layout.h so the documented NTFS structures remain available.

Suggested-by: Hyunchul Lee <hyc.lee@gmail.com>
Link: https://lore.kernel.org/all/CANFS6bYTzioqZjYt=51Kb9RdR3MKXaez_fh_WCLoym093VxFmg@mail.gmail.com/
Signed-off-by: DaeMyung Kang <charsyam@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/Makefile
fs/ntfs/quota.c [deleted file]
fs/ntfs/quota.h [deleted file]
fs/ntfs/super.c
fs/ntfs/volume.h