]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/dax.c
mm: replace FAULT_FLAG_SIZE with parameter to huge_fault
[karo-tx-linux.git] / fs / dax.c
index c3c29fbf64be09dc60a4f517c97745068feb9ac5..5ae8b71ebadc91eaff464128422ce5571fb4e24e 100644 (file)
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -1452,12 +1452,13 @@ static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops)
  * has done all the necessary locking for page fault to proceed
  * successfully.
  */
-int dax_iomap_fault(struct vm_fault *vmf, const struct iomap_ops *ops)
+int dax_iomap_fault(struct vm_fault *vmf, enum page_entry_size pe_size,
+                   const struct iomap_ops *ops)
 {
-       switch (vmf->flags & FAULT_FLAG_SIZE_MASK) {
-       case FAULT_FLAG_SIZE_PTE:
+       switch (pe_size) {
+       case PE_SIZE_PTE:
                return dax_iomap_pte_fault(vmf, ops);
-       case FAULT_FLAG_SIZE_PMD:
+       case PE_SIZE_PMD:
                return dax_iomap_pmd_fault(vmf, ops);
        default:
                return VM_FAULT_FALLBACK;