On Wed, Jan 24, 2024 at 05:00:37AM +0000, Yuezhang.Mo@xxxxxxxx wrote: > inode->i_rwsem should be locked when writing file. But the lock > is missing when writing zeros to the file in exfat_file_mmap(). This is actually very weird behaviour in exfat. This kind of "I must manipulate the on-disc layout" is not generally done in mmap(), it's done in ->page_mkwrite() or even delayed until we actually do writeback. Why does exfat do this?