[PATCH v2 17/34] ntfs: don't set SB_RDONLY after filesystem errors

Christian Brauner brauner at kernel.org
Wed Nov 11 01:34:46 PST 2026


On Fri, Oct 30, 2026 at 04:10:02PM +0000, sashiko-bot at kernel.org wrote:
> Should ntfs_trim_prealloc() (called from ntfs_file_release() and
> ntfs_stream_file_release()) also check ntfs_emergency_state(vol) before
> rolling back preallocated blocks?

It only drops trailing holes from the runlist so no clusters are freed.
And __ntfs_write_inode(), ntfs_mft_writepages() and
ntfs_mft_record_free() refuse in that state so nothing reaches the disk.

> Does ntfs_drop_big_inode() need the same !ntfs_emergency_state(ni->vol) guard
> when truncating unlinked inodes with I_SYNC set?

Yes, ntfs_evict_big_inode() already leaves unlinked inodes alone in that
state. We'll probably just do the same.



More information about the linux-mtd mailing list