* + ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch added to -mm tree
@ 2015-12-22 22:46 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2015-12-22 22:46 UTC (permalink / raw)
To: ross.zwisler, adilger.kernel, bfields, dan.j.williams,
dave.hansen, david, hpa, jack, jlayton, matthew.r.wilcox, mingo,
tglx, tytso, viro, willy, mm-commits
The patch titled
Subject: ext2: call dax_pfn_mkwrite() for DAX fsync/msync
has been added to the -mm tree. Its filename is
ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.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: Ross Zwisler <ross.zwisler@linux.intel.com>
Subject: ext2: call dax_pfn_mkwrite() for DAX fsync/msync
To properly support the new DAX fsync/msync infrastructure filesystems
need to call dax_pfn_mkwrite() so that DAX can track when user pages are
dirtied.
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jan Kara <jack@suse.com>
Cc: Jeff Layton <jlayton@poochiereds.net>
Cc: Matthew Wilcox <willy@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ext2/file.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff -puN fs/ext2/file.c~ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync fs/ext2/file.c
--- a/fs/ext2/file.c~ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync
+++ a/fs/ext2/file.c
@@ -102,8 +102,8 @@ static int ext2_dax_pfn_mkwrite(struct v
{
struct inode *inode = file_inode(vma->vm_file);
struct ext2_inode_info *ei = EXT2_I(inode);
- int ret = VM_FAULT_NOPAGE;
loff_t size;
+ int ret;
sb_start_pagefault(inode->i_sb);
file_update_time(vma->vm_file);
@@ -113,6 +113,8 @@ static int ext2_dax_pfn_mkwrite(struct v
size = (i_size_read(inode) + PAGE_SIZE - 1) >> PAGE_SHIFT;
if (vmf->pgoff >= size)
ret = VM_FAULT_SIGBUS;
+ else
+ ret = dax_pfn_mkwrite(vma, vmf);
up_read(&ei->dax_sem);
sb_end_pagefault(inode->i_sb);
_
Patches currently in -mm which might be from ross.zwisler@linux.intel.com are
mm-dax-fix-livelock-allow-dax-pmd-mappings-to-become-writeable.patch
pmem-add-wb_cache_pmem-to-the-pmem-api.patch
dax-support-dirty-dax-entries-in-radix-tree.patch
mm-add-find_get_entries_tag.patch
dax-add-support-for-fsync-sync.patch
ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch
ext4-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch
xfs-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-22 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 22:46 + ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.