Skip to contentSkip to conversation

mm-call-filemap_fdatawrite_range_kick-after-iocb_dontcache-issue.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 20, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: call filemap_fdatawrite_range_kick() after IOCB_DONTCACHE issue
has been removed from the -mm tree. Its filename was
mm-call-filemap_fdatawrite_range_kick-after-iocb_dontcache-issue.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Jens Axboe <[email protected]>
Subject: mm: call filemap_fdatawrite_range_kick() after IOCB_DONTCACHE issue
Date: Fri, 20 Dec 2024 08:47:49 -0700

When a buffered write submitted with IOCB_DONTCACHE has been successfully submitted, call filemap_fdatawrite_range_kick() to kick off the IO. File systems call generic_write_sync() for any successful buffered write submission, hence add the logic here rather than needing to modify the file system.

Cc Brian Foster <[email protected]>
Cc Chris Mason <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>

---

 include/linux/fs.h |    5 +++++
 1 file changed, 5 insertions(+)
include/linux/fs.h renamed from include/linux/fs.h~mm-call-filemap_fdatawrite_range_kick-after-iocb_dontcache-issue +5 -0
@@ -2912,6 +2912,11 @@ static inline ssize_t generic_write_sync
 				(iocb->ki_flags & IOCB_SYNC) ? 0 : 1);
 		if (ret)
 			return ret;
+	} else if (iocb->ki_flags & IOCB_DONTCACHE) {
+		struct address_space *mapping = iocb->ki_filp->f_mapping;
+
+		filemap_fdatawrite_range_kick(mapping, iocb->ki_pos,
+					      iocb->ki_pos + count);
 	}
 
 	return count;

_

Patches currently in -mm which might be from [email protected] are