Thread (28 messages) 28 messages, 7 authors, 2021-02-25

Re: [PATCH 4/7] fsdax: Replace mmap entry in case of CoW

flat view

From: Christoph Hellwig <hch@lst.de>
Date: 2021-02-08 15:20:59
Also in: linux-btrfs, linux-fsdevel, lkml, nvdimm, ocfs2-devel

quoted hunk ↗ jump to hunk
 static void *dax_insert_entry(struct xa_state *xas,
 		struct address_space *mapping, struct vm_fault *vmf,
-		void *entry, pfn_t pfn, unsigned long flags, bool dirty)
+		void *entry, pfn_t pfn, unsigned long flags, bool insert_flags)
 {
 	void *new_entry = dax_make_entry(pfn, flags);
+	bool dirty = insert_flags & DAX_IF_DIRTY;
+	bool cow = insert_flags & DAX_IF_COW;
 
 	if (dirty)
 		__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
Can we just move the __mark_inode_dirty to the one caller that needs it
in a prep patch?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help