Re: [PATCH v2] exfat: validate cached iomaps during buffered writes and writeback
From: Chi Zhiling
Date: Wed Jul 01 2026 - 22:43:35 EST
On 7/2/26 10:31 AM, Chi Zhiling wrote:
error = __exfat_iomap_begin(wpc->inode, offset, len,Sorry, this patch causes a build failure. I'll send a v3 as soon as possible.
@@ -269,3 +271,12 @@ int exfat_iomap_swap_activate(struct swap_info_struct *sis,
{
return iomap_swapfile_activate(sis, file, span, &exfat_iomap_ops);
}
+
+static bool exfat_iomap_valid(struct inode *inode, const struct iomap *iomap)
+{
+ return EXFAT_I(inode)->cache_valid_id == iomap->validity_cookie;
+}
+
+const struct iomap_write_ops exfat_iomap_write_ops = {
+ .iomap_valid = exfat_iomap_valid,
+};