From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1084A21E47D63 for ; Wed, 23 Aug 2017 11:41:16 -0700 (PDT) Date: Wed, 23 Aug 2017 11:43:49 -0700 From: Christoph Hellwig Subject: Re: [PATCH 10/13] mm: Wire up MAP_SYNC Message-ID: <20170823184349.GA12660@infradead.org> References: <20170817160815.30466-1-jack@suse.cz> <20170817160815.30466-11-jack@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170817160815.30466-11-jack@suse.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Jan Kara Cc: Christoph Hellwig , Boaz Harrosh , linux-nvdimm@lists.01.org, linux-xfs@vger.kernel.org, Andy Lutomirski , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org List-ID: On Thu, Aug 17, 2017 at 06:08:12PM +0200, Jan Kara wrote: > Pretty crude for now... > > Signed-off-by: Jan Kara > --- > fs/ext4/file.c | 2 ++ > include/linux/mm.h | 1 + > include/linux/mman.h | 3 ++- > include/uapi/asm-generic/mman.h | 1 + > mm/mmap.c | 5 +++++ > 5 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/fs/ext4/file.c b/fs/ext4/file.c > index f84bb29e941e..850037e140d7 100644 > --- a/fs/ext4/file.c > +++ b/fs/ext4/file.c > @@ -340,6 +340,8 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) > vma->vm_flags |= VM_MIXEDMAP | VM_HUGEPAGE; > } else { > vma->vm_ops = &ext4_file_vm_ops; > + if (vma->vm_flags & VM_SYNC) > + return -EOPNOTSUPP; > } So each mmap instance would need to reject the flag explicitly? Or do I misunderstand this VM_SYNC flag? _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm