Re: [PATCH] ntfs: remove unsupported quota handling

From: Namjae Jeon

Date: Mon May 18 2026 - 07:29:40 EST


On Sun, May 17, 2026 at 12:44 PM DaeMyung Kang <charsyam@xxxxxxxxx> wrote:
>
> 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@xxxxxxxxx>
> Link: https://lore.kernel.org/all/CANFS6bYTzioqZjYt=51Kb9RdR3MKXaez_fh_WCLoym093VxFmg@xxxxxxxxxxxxxx/
> Signed-off-by: DaeMyung Kang <charsyam@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!