On Fri, Nov 03, 2023 at 04:09:49PM +1100, Li Dongyang wrote: > folio_wait_stable() now checks SB_I_STABLE_WRITES > flag on the superblock instead of backing_dev_info, > this could trigger a false block integrity error when > doing buffered write directly to the block device, > as folio_wait_stable() is a noop for bdev and the > content could be modified during writeback. > > Check if the folio's superblock is bdev and wait for > writeback if the backing device requires stables_writes. https://lore.kernel.org/lkml/CAOi1vP9Zit-A9rRk9jy+d1itaBzUSBzFBuhXE+EDfBtF-Mf0og@xxxxxxxxxxxxxx/T/#t https://lore.kernel.org/all/20231024064416.897956-1-hch@xxxxxx/