The patch titled Subject: dax: dirty inode only if required has been added to the -mm tree. Its filename is dax-dirty-inode-only-if-required.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/dax-dirty-inode-only-if-required.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/dax-dirty-inode-only-if-required.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> Subject: dax: dirty inode only if required Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> Reviewed-by: Jan Kara <jack@xxxxxxx> Reviewed-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> Cc: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/dax.c~dax-dirty-inode-only-if-required fs/dax.c --- a/fs/dax.c~dax-dirty-inode-only-if-required +++ a/fs/dax.c @@ -358,7 +358,8 @@ static int dax_radix_entry(struct addres void *entry; WARN_ON_ONCE(pmd_entry && !dirty); - __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); + if (dirty) + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); spin_lock_irq(&mapping->tree_lock); _ Patches currently in -mm which might be from dmonakhov@xxxxxxxxxx are dax-dirty-inode-only-if-required.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html