From: Matthew Wilcox <[email protected]>

ext4 needs to reserve enough space in the journal to allocate a PUD-sized
page.

Signed-off-by: Matthew Wilcox <[email protected]>
---
 fs/ext4/file.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 6615499..7f850d5 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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to