[PATCH v2 07/34] fat: don't set SB_RDONLY after filesystem errors

Christian Brauner brauner at kernel.org
Tue Nov 10 13:59:38 PST 2026


On Fri, Oct 30, 2026 at 04:09:53PM +0000, sashiko-bot at kernel.org wrote:
> However, the dirty directory and FAT buffer_heads in sb->s_bdev are still
> written out by bdev writeback, mmb_sync() in fat_evict_inode(), and
> sync_blockdev() on unmount. Wouldn't that flush the deleted old directory
> entry along with a new directory entry containing start = 0 and size = 0,
> losing the file or directory contents and orphaning its cluster chain?

Right. I'll drop that check.

-- 



More information about the linux-mtd mailing list