Boaz Harrosh 0e3b210ce1 dax: use pfn_mkwrite to update c/mtime + freeze protection
From: Yigal Korman <yigal@plexistor.com>

[v1]
Without this patch, c/mtime is not updated correctly when mmap'ed page is
first read from and then written to.

A new xfstest is submitted for testing this (generic/080)

[v2]
Jan Kara has pointed out that if we add the
sb_start/end_pagefault pair in the new pfn_mkwrite we
are then fixing another bug where: A user could start
writing to the page while filesystem is frozen.

Signed-off-by: Yigal Korman <yigal@plexistor.com>
Signed-off-by: Boaz Harrosh <boaz@plexistor.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-04-15 16:35:20 -07:00
..
2015-04-11 22:24:41 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-04-11 22:24:41 -04:00
2015-02-16 17:56:03 -08:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-04-14 16:09:18 -07:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-04-11 22:24:41 -04:00
2015-03-18 10:29:48 +01:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00
2015-04-11 22:24:41 -04:00
2015-03-25 20:28:11 -04:00
2015-03-06 23:10:29 +01:00
2015-03-25 20:28:11 -04:00
2015-03-25 20:28:11 -04:00