From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by kanga.kvack.org (Postfix) with ESMTP id 4E8E6828DE for ; Fri, 8 Jan 2016 14:50:07 -0500 (EST) Received: by mail-pf0-f177.google.com with SMTP id q63so14284797pfb.1 for ; Fri, 08 Jan 2016 11:50:07 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com. [192.55.52.115]) by mx.google.com with ESMTP id um10si18630224pab.110.2016.01.08.11.49.58 for ; Fri, 08 Jan 2016 11:49:58 -0800 (PST) From: Matthew Wilcox Subject: [PATCH v3 8/8] ext4: Support for PUD-sized transparent huge pages Date: Fri, 8 Jan 2016 14:49:52 -0500 Message-Id: <1452282592-27290-9-git-send-email-matthew.r.wilcox@intel.com> In-Reply-To: <1452282592-27290-1-git-send-email-matthew.r.wilcox@intel.com> References: <1452282592-27290-1-git-send-email-matthew.r.wilcox@intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Matthew Wilcox , linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org From: Matthew Wilcox ext4 needs to reserve enough space in the journal to allocate a PUD-sized page. Signed-off-by: Matthew Wilcox --- fs/ext4/file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 665fc4b..cec5fa7 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -211,6 +211,10 @@ static int ext4_dax_fault(struct vm_area_struct *vma, struct vm_fault *vmf) nblocks = ext4_chunk_trans_blocks(inode, PMD_SIZE / PAGE_SIZE); break; + case FAULT_FLAG_SIZE_PUD: + nblocks = ext4_chunk_trans_blocks(inode, + PUD_SIZE / PAGE_SIZE); + break; default: return VM_FAULT_FALLBACK; } -- 2.6.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org